Re: Simple scope check.
Re: Simple scope check.
- Subject: Re: Simple scope check.
- From: Sandro Noel <email@hidden>
- Date: Sat, 9 Dec 2006 22:14:44 -0500
Thank you Philip!
Sandro Noel.
On 9-Dec-06, at 8:55 PM, Philip Q wrote:
On 10/12/06, Sandro Noel <email@hidden> wrote:
just a quick question, if i'm retaining an object from a thread and
the thread is released while
i'm accessing/working with the object will the thread wait until i'm
finished or will it be released, and the object live until i'm
finished with it ?
The object will be live until it has a retainCount of 0, but retaining
something does not introduce any kind of dependency (internally)
between the object and it's retainer.
So, a thread (or any other object) will not wait around for an object
to be released unless you write it that way.
-Phil
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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