Re: Newbie: How to know whether an object is in autorelease pool
Re: Newbie: How to know whether an object is in autorelease pool
- Subject: Re: Newbie: How to know whether an object is in autorelease pool
- From: mmalc crawford <email@hidden>
- Date: Tue, 11 Dec 2007 21:47:56 -0800
On Dec 11, 2007, at 9:38 PM, norio wrote:
I know that class factory puts its instance into autorelease pool.
Just to address this as a separate point: no, you don't.
An object you get back from a "convenience constructor" may typically
be autoreleased, but there are some cases when it may not be (a shared
singleton object, for example). To reiterate the point made in the
previous reply; your only concern should be, do you own the object --
are you following the rules correctly.
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