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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to