• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Using NSTerminateLater with a Status Item
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Write Finder plugin
  • Next by Date: Re: Forcing Core Data to save attribute changed behind its back?
  • Previous by thread: Mission Control Hiding Window
  • Next by thread: iOS Rendering PDFs on a Background Thread
  • Index(es):
    • Date
    • Thread