On 24/11/2010, at 12:41 PM, Rob Ross wrote: > It's not nonsense, although Jain's description is a little too loose. > > Rephrased:
First rule of the Cocoa Club: You must not rephrase The Rules. >>> However, if class methods are used, then there is no need to worry about >>> releasing objects because they are auto-released." This is nonsense, which was the part I was mostly referring to. Objects returned by class methods are not autoreleased as a rule, though they may well be, and typically are - all you need to know is THAT YOU DO NOT OWN THEM. You may not need to be concerned with releasing them, because as you're not their owner it's not your job, but you CERTAINLY have to be concerned with retaining them, if you want to keep a reference to them, perhaps in an ivar. But I'm straying dangerously into rephrasing territiory here, so I'll simply repost the link: http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/MemoryMgmt/MemoryMgmt.html --Graham _______________________________________________ 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 arch...@mail-archive.com