• 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: NSWorkspaceWillPowerOffNotification from a daemon
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSWorkspaceWillPowerOffNotification from a daemon


  • Subject: Re: NSWorkspaceWillPowerOffNotification from a daemon
  • From: Matthew Mashyna <email@hidden>
  • Date: Thu, 12 Mar 2009 21:41:27 -0400

On Mar 12, 2009, at 8:45 PM, Nick Zitzmann wrote:


On Mar 12, 2009, at 6:11 PM, Matthew Mashyna wrote:

The sleep calls work fine but the PowerOff doesn't work ever. Is there another way to catch shutdown ? Can I catch some signal to handle it ?


Did you remember to call NSApplicationLoad() before using NSWorkspace?

Nick Zitzmann
<http://www.chronosnet.com/>



Yes. I get the sleep notifications from NSWorkSpace but not the power off.


_______________________________________________

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


References: 
 >NSWorkspaceWillPowerOffNotification from a daemon (From: Matthew Mashyna <email@hidden>)
 >Re: NSWorkspaceWillPowerOffNotification from a daemon (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: NSGradient draws incorrectly in PDF context?
  • Next by Date: Re: NSGradient draws incorrectly in PDF context?
  • Previous by thread: Re: NSWorkspaceWillPowerOffNotification from a daemon
  • Next by thread: Re: NSWorkspaceWillPowerOffNotification from a daemon
  • Index(es):
    • Date
    • Thread