• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Simple scope check.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simple scope check.


  • Subject: Re: Simple scope check.
  • From: "Philip Q" <email@hidden>
  • Date: Sun, 10 Dec 2006 14:55:34 +1300

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


  • Follow-Ups:
    • Re: Simple scope check.
      • From: Sandro Noel <email@hidden>
References: 
 >Simple scope check. (From: Sandro Noel <email@hidden>)
 >Re: Simple scope check. (From: Sandro Noel <email@hidden>)
 >Re: Simple scope check. (From: Hank Heijink <email@hidden>)
 >Re: Simple scope check. (From: Michael Watson <email@hidden>)
 >Re: Simple scope check. (From: Sandro Noel <email@hidden>)

  • Prev by Date: Re: Simple scope check.
  • Next by Date: change desktop picture on all displays
  • Previous by thread: Re: Simple scope check.
  • Next by thread: Re: Simple scope check.
  • Index(es):
    • Date
    • Thread