Re: Disabling auto-synthesis of property accessors.
Re: Disabling auto-synthesis of property accessors.
- Subject: Re: Disabling auto-synthesis of property accessors.
- From: Jens Alfke <email@hidden>
- Date: Tue, 26 May 2015 11:19:38 -0700
> On May 26, 2015, at 10:24 AM, Alex Zavatone <email@hidden> 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 (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