• 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
Stalling until notification is received
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Stalling until notification is received


  • Subject: Stalling until notification is received
  • From: Indragie Karunaratne <email@hidden>
  • Date: Tue, 31 May 2011 08:03:29 -0600

Hi all,

I need to create a simple command line application that will stall (as in keep running without exiting) until it receives a certain distributed notification via NSDistributedNotificationCenter. What would be the best way to go about doing this? I assume I'd have to have a separate thread for observing the notification and then have some sort of loop running in main() that checks whether the notification has been received, but I'm not certain. Any tips would be appreciated.

Thanks,
Indragie_______________________________________________

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: Stalling until notification is received
      • From: Ken Thomases <email@hidden>
  • Prev by Date: Re: Why does NSArray count return NSUInteger?
  • Next by Date: Re: Stalling until notification is received
  • Previous by thread: Re: Handling mouse events on transparent window conditionally
  • Next by thread: Re: Stalling until notification is received
  • Index(es):
    • Date
    • Thread