• 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: Notifications in Non-GUI program
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Notifications in Non-GUI program
      • From: Nick Zitzmann <email@hidden>
References: 
 >Notifications in Non-GUI program (From: Tom Marchand <email@hidden>)

  • Prev by Date: Re: Running out of process VM
  • Next by Date: Re: Notifications in Non-GUI program
  • Previous by thread: Notifications in Non-GUI program
  • Next by thread: Re: Notifications in Non-GUI program
  • Index(es):
    • Date
    • Thread