On Oct 3, 2008, at 1:00 PM, [EMAIL PROTECTED] 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 (Cocoa-dev@lists.apple.com) 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]