Re: Threading issues with ivars
Re: Threading issues with ivars
- Subject: Re: Threading issues with ivars
- From: Graham Cox <email@hidden>
- Date: Tue, 2 Feb 2010 23:53:54 +1100
On 02/02/2010, at 11:49 PM, Andreas Grosam wrote:
> I don't see why this should happen, since I think I get a copy of the string - as the property declaration implies: @property (copy) NSString* name.
>
> Do I miss something fundamentally?
My understanding is that <copy> refers to the read of the property, not the setting of it. In other words, when you ask for name, you get a copy, but when it's passed in it is not copied. And since you haven't marked it as being retained, it's just a weak ref.
--Graham
_______________________________________________
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