Re: NSWorkspaceWillPowerOffNotification events
Re: NSWorkspaceWillPowerOffNotification events
- Subject: Re: NSWorkspaceWillPowerOffNotification events
- From: Quinn <email@hidden>
- Date: Mon, 13 Aug 2007 10:43:16 +0100
At 19:56 +0530 11/8/07, sunil prajapati wrote:
This works fine when i show my application in Dock,I able to capture
the System Logout event.
But when I do not show my application in Dock by setting
LSUIElement=1 then I unable to capture the System Logout event.
I believe that this relates to the way that you're quit. When you're
quit by loginwindow, it includes an extra parameter in the Apple
event to indicate why it's quitting you. If that parameter says that
you're quitting because of a shut down, AppKit generates this
notification internally.
I'm not sure why you're not getting the notification in the
LSUIElement case, and it's sufficiently far outside of my expertise
that I'm reluctant to speculate. Perhaps you could ask the good
folks on the cocoa-dev mailing list.
<http://lists.apple.com/mailman/listinfo/cocoa-dev>
Share and Enjoy
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden