Re: Methods that return autoreleased objects?
Re: Methods that return autoreleased objects?
- Subject: Re: Methods that return autoreleased objects?
- From: mmalc crawford <email@hidden>
- Date: Sat, 28 Jun 2008 23:58:21 -0700
On Jun 28, 2008, at 9:59 PM, Charles Srstka wrote:
Methods that begin with "alloc" or "new" or contain "copy" will
return objects you are responsible for. All other objects returned
from methods are taken care of.
Well, there is the notable exception of top-level objects loaded
from a NIB file, which do need to be released.
... which is documented:
<http://developer.apple.com/documentation/Cocoa/Conceptual/LoadingResources/CocoaNibs/chapter_3_section_3.html#
>
mmalc
_______________________________________________
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