Re: Accessors Question
Re: Accessors Question
- Subject: Re: Accessors Question
- From: Andy Lee <email@hidden>
- Date: Thu, 12 Jun 2008 13:41:21 -0400
On Jun 12, 2008, at 1:31 PM, Jean-Daniel Dupas wrote:
This is mainly to prevent this kind of issue:
NSString *foo = [myObject foo];
[myObject setFoo:nil]; // setter release the foo ivar => foo is no
longer pointing on a valid memory location.
I hadn't thought of this case.
Thanks for the pointer to the docs -- I now see there is a
vulnerability in the accessors I've been writing.
--Andy
_______________________________________________
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