Re: User Shutdown or Logout
Re: User Shutdown or Logout
- Subject: Re: User Shutdown or Logout
- From: development2 <email@hidden>
- Date: Fri, 10 Aug 2007 15:25:31 -0600
Thanks for this info, but it does not seem to work correctly. I have
a Status Item app (Main menu bar), and the Notification
NSWorkspaceWillPowerOffNotification setup correctly, but it never
gets called. I just tried this in a normal app and there is no
problem with that it gets called with no problem. But under this Menu
Bar app it is never called. Now I found some links that talk about
this not working for background apps, but they never came to any real
conclusion. Has anyone else ever experienced this?
Thanks in advance.
On Aug 9, 2007, at 2:23 PM, development2 wrote:
I am trying to figure out how to detect when the user either logs
out or the user Shuts down. How can I detect this? This may have
already been covered, but i can't seem to find the answer in the
list archives.
Thanks in advance for any help.
http://developer.apple.com/documentation/Cocoa/Reference/
ApplicationKit/Classes/NSWorkspace_Class/index.html#//apple_ref/doc/
uid/TP40004153
Specifically the notifications...
_______________________________________________
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