Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Cyberdog Programmer's Kit / Part 3 - Cyberdog Reference
Chapter 7 - Classes and Methods / CyberItem


Clone

Returns a copy of this Cyberdog item.

CyberItem Clone ();
return value
The copy of the CyberItem object.
DISCUSSION
This method should return a deep copy of this Cyberdog item; that is, any objects referenced by this Cyberdog item should also be copied. This method should always set the reference count of the copy to 1. This method should return a clone of the Cyberdog item, even if the object has not been initialized by calling ICyberItem.

If you call the Compare method to compare the cloned Cyberdog item returned by this method with the original Cyberdog item, the result of the comparison should be kCDCompareEqual.

If you subclass CyberItem, you must override this method. Your override must not call its inherited method; that is, your override method must implement this method's functionality completely.

SEE ALSO
The Compare method (page 230).
The ICyberItem method (page 238).


Previous Book Contents Book Index Next

© Apple Computer, Inc.
13 JUL 1996