• 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
NSTask - Notification and Threads
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTask - Notification and Threads


  • Subject: NSTask - Notification and Threads
  • From: Seth Willits <email@hidden>
  • Date: Thu, 5 Mar 2009 14:22:12 -0800


It seems to me that the thread a task was launched on must continue to exist until the thread is terminated, in order for the task to send NSTaskDidTerminateNotification. I can either make my thread continue to exist (I'd prefer not) or I can make the launch happen on the main thread and use a condition to know when it's actually happened. The latter seems pretty reasonable. Anything else? Anyone have solid experience with this situation?


I find it odd the docs don't mention this, but maybe it's one of those things I'm "just supposed to know."


-- Seth Willits



_______________________________________________

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: NSTask - Notification and Threads
      • From: Ken Thomases <email@hidden>
  • Prev by Date: CoreData, SyncServices & NSURL ...
  • Next by Date: Re: NSTask - Notification and Threads
  • Previous by thread: Re: CoreData, SyncServices & NSURL ...
  • Next by thread: Re: NSTask - Notification and Threads
  • Index(es):
    • Date
    • Thread