> 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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to