Re: Using NSTerminateLater with a Status Item
Re: Using NSTerminateLater with a Status Item
- Subject: Re: Using NSTerminateLater with a Status Item
- From: Trygve Inda <email@hidden>
- Date: Thu, 26 Jul 2012 11:01:57 -0700
- Thread-topic: Using NSTerminateLater with a Status Item
> Hi Olivier.
>
> rdar://problem/6001460
>
> See http://lapcatsoftware.com/rdar/6001460/index.html for an explanation.
>
> In short, you won't be able to do it with a LSUIElement app.
>
> -Jeff
>
Is there a work-around for this?
I need to delay shutdown of a LSUIElement app during logout for a few
seconds to let a system call complete.
I have tried calling:
[[NSApplication sharedApplication] setActivationPolicy:
NSApplicationActivationPolicyRegular];
During a NSWorkspaceWillPowerOffNotification callback.
Doesn't work.
I have tried using NSTerminateLater with a timer, same results.
Any other way to do this or to get notified any earlier of an impending
shutdown or log out?
Trygve
_______________________________________________
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