Re: NSCoding protocol
Re: NSCoding protocol
- Subject: Re: NSCoding protocol
- From: Nick Zitzmann <email@hidden>
- Date: Fri, 3 Oct 2008 16:59:13 -0600
On Oct 3, 2008, at 1:00 PM, email@hidden wrote:
So finally, my question: am I right to retain S2 and S3, and not S1?
No. -decodeObject: and -decodeObjectForKey: always return autoreleased
objects, so if you use them later, then you must retain them unless
the code requires GC.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
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