NSOperation Question
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