• 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
Re: Stopping an NSRunLoop OR getting NSDistributedNotificationCenter notifications
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Stopping an NSRunLoop OR getting NSDistributedNotificationCenter notifications
      • From: Chris Kane <email@hidden>
  • Prev by Date: Re: Stopping an NSRunLoop OR getting NSDistributedNotificationCenter notifications
  • Next by Date: Re: Stopping an NSRunLoop OR getting NSDistributedNotificationCenter notifications
  • Previous by thread: Re: iPhoto like zooming
  • Next by thread: Re: Stopping an NSRunLoop OR getting NSDistributedNotificationCenter notifications
  • Index(es):
    • Date
    • Thread