Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: User Shutdown or Logout



Hi,

I am continuing this thread. I have an cocoa application with dock icon.

Now with NSWorkspaceWillPowerOffNotification of NSWorkspace, I am able to
get notification when user logs out or shuts down. I want to know whether
exactly user is logging out or he/she is shutting down the Mac. Is it
possible?

Thanks,
Palav


On 8/11/07, development2 <email@hidden> wrote:
>
> We should both file a bug in Bug Reporter on this problem.
>
>
> On Aug 11, 2007, at 7:48 AM, parag vibhute wrote:
>
> > Yes I have experienced same thing with my application which only
> > has status
> > item. So I think it does not work with background application.
> > Similar to that, I tried NSApplicationwillterminate notification,
> > but it
> > also does not work with background applications.
> >
> > So how to solve this problem?
> >
> > Thanks,
> > Palav
> >
> >
> > On 8/11/07, Nick Zitzmann <email@hidden> wrote:
> >>
> >>
> >> On Aug 10, 2007, at 3:25 PM, development2 wrote:
> >>
> >>> 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?
> >>
> >> Are you sure you're using the correct notification center?
> >> NSWorkspace has its own notification center separate from the default
> >> center.
> >>
> >> Nick Zitzmann
> >> <http://www.chronosnet.com/>
> >>
> >>
> >> _______________________________________________
> >>
> >> 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:
> >> http://lists.apple.com/mailman/options/cocoa-dev/parag.vibhute%
> >> 40gmail.com
> >>
> >> This email sent to email@hidden
> >>
> >
> >
> >
> > --
> > There are many things in your life that will catch your eye but
> > only a few
> > will catch your heart....pursue those'
> > .
> > _______________________________________________
> >
> > 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:
> > http://lists.apple.com/mailman/options/cocoa-dev/development2%
> > 40bitblasters.com
> >
> > This email sent to email@hidden
> >
>
>


-- 
There are many things in your life that will catch your eye but only a few
will catch your heart....pursue those'
.
_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden

References: 
 >User Shutdown or Logout (From: development2 <email@hidden>)
 >Re: User Shutdown or Logout (From: Scott Anguish <email@hidden>)
 >Re: User Shutdown or Logout (From: development2 <email@hidden>)
 >Re: User Shutdown or Logout (From: Nick Zitzmann <email@hidden>)
 >Re: User Shutdown or Logout (From: "parag vibhute" <email@hidden>)
 >Re: User Shutdown or Logout (From: development2 <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.