• 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
NSOperation Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSOperation Question


  • Subject: NSOperation Question
  • From: Sandro Noel <email@hidden>
  • Date: Wed, 07 Jan 2009 19:45:05 -0500

Greetings!

I've been using NSOperation in my applications and I enjoy it's simplicity.
All my Operations go into a NSOperationQueue.


How would I go about having an operation stay alive as long as my application is alive,

This is what I want to do.

I use DiskAppearedCallback / DiskDisappearedCallback from the DiskArbitration Framework
in my application and I want the to be in their separate thread.


How can i have the thread not quit as soon as the callback's are registered?

something like this ?
- (void) main{
	// register the callbacks and get the runloop
	// wait for cancellation.
	while (!isCancelled){}
}

thank you !
Sandor Noel.
_______________________________________________

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: NSOperation Question
      • From: Ken Thomases <email@hidden>
    • Re: NSOperation Question
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Re: How to obtain icon displayed by Finder for a file
  • Next by Date: Returning value from detached NSThread selector with multiple arguments.
  • Previous by thread: Re: NSOutlineView, tracking in a custom NSTextFieldCell, & Shift&Cmd Keys
  • Next by thread: Re: NSOperation Question
  • Index(es):
    • Date
    • Thread