Re: Notifications in Non-GUI program
Re: Notifications in Non-GUI program
- Subject: Re: Notifications in Non-GUI program
- From: Nick Zitzmann <email@hidden>
- Date: Thu, 13 Apr 2006 16:44:39 -0600
On Apr 13, 2006, at 4:29 PM, Tom Marchand wrote:
I am building a command line program with no GUI and I need to use
notifications from the InstantMessage framework. Are notifications
available in a non-GUI environment?
Yes; NS(Distributed)NotificationCenter and NSNotification are in the
Foundation framework.
If so, what looping mechanism should I use to wait for notifications?
Notifications work through CFRunLoop, so you'll have to run the run
loop at various intervals in order to process notifications.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
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