But this requires MyObj to support the copy message. Do all objects
in cocoa automatically support copy message (if they inherit from
NSObject does not implement it, subclasses have to. I think all Cocoa
classes usually implement copy; at least the commonly used ones,
especially of CoreFoundation.
Note that sometimes you have a mutable and an immutable version of a
class (e.g. NSString vs. NSMutableString). The copy imlementation of
immutable classes usually returns the same object - because it's
immutable there is no need to have a "real" copy. But you don't have
to worry about this.
iVolume - Loudness adjustment for iTunes.
LittleSecrets - The encrypted notepad.
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden