> On May 26, 2015, at 10:24 AM, Alex Zavatone <z...@mac.com> wrote: > > For any nonmutable class, should I be using copy instead of strong or is this > just with NSString?
Well, only for classes that implement NSCopying. And if it’s truly an immutable value class; for example you probably wouldn’t want an IBOutlet NSView property to copy the view. :-p It’s also not a given that all immutable classes implement -copy as -retain. Foundation’s value classes (string, data, collections) do, but I don’t know about ones from other frameworks. —Jens _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com