Re: Stopping an NSRunLoop OR getting NSDistributedNotificationCenter notifications
Re: Stopping an NSRunLoop OR getting NSDistributedNotificationCenter notifications
- Subject: Re: Stopping an NSRunLoop OR getting NSDistributedNotificationCenter notifications
- From: "Tom Harrington" <email@hidden>
- Date: Mon, 19 Jun 2006 10:50:01 -0600
On 6/18/06, James Bucanek <email@hidden> wrote:
I've got a background daemon (Foundation command-line tool) that performs user-defined tasks at specific times.
I've never figured out how to get an NSRunLoop to exit in a timely fashion.
In a similar-sounding situation I found that using CFRunLoop nicely
solved the problem. I'd enter the run loop with CFRunLoopRun(). On
receiving the appropriate notification I'd stop the run loop with
CFRunLoopStop(CFRunLoopGetCurrent()). Worked like a charm, even with
Cocoa notifications.
--
Tom Harrington
email@hidden
AIM: atomicbird1
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden