• 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
performSelectorInBackground:anObject:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

performSelectorInBackground:anObject:


  • Subject: performSelectorInBackground:anObject:
  • From: "Rick C." <email@hidden>
  • Date: Fri, 4 Sep 2009 02:55:08 -0700 (PDT)

hello,

i use this method at various places in my project as an easy/safe way to do some background processing.  i realize with every call it will initiate the selector on a new background thread.  but i have noticed by observing activity monitor that it takes quite some time for these threads to go away once they have been initiated.  as far as i know the only thing required it having an autorelease pool inside the selector that is triggered by this method.  are there any additional steps to take to make sure these threads and the memory being used are ended properly?  or maybe there is a way i can end them manually?  as a note...snow leopard does a better job of getting rid of the finished threads showing in activity monitor than leopard.

thanks,

rick



_______________________________________________

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

  • Follow-Ups:
    • Re: performSelectorInBackground:anObject:
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: What about revamping OpenUp.app for Snow Leopard?
  • Next by Date: removeObserver:forKeyPath: thread safe?
  • Previous by thread: Hyper link text field overlap its text under box
  • Next by thread: Re: performSelectorInBackground:anObject:
  • Index(es):
    • Date
    • Thread