• 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: Jeff Johnson <email@hidden>
  • Date: Tue, 15 Feb 2011 09:55:45 -0600

On Feb 14, 2011, at 3:25 PM, email@hidden wrote:

> On 14 Feb 2011, at 19:29, Olivier Lance wrote:
>
>> Hi Jeff,
>>
>> Well that's what I was afraid to learn...
>> Gotta find a workaround then!
>>
> I don't know if this would fly or not but...
>
> Rather than conventionally returning NSTerminateLater you could try, assuming your async driver calls are run loop sources, run the run loop as required within - applicationShouldTerminate.
>
> This should allow you the opportunity to get a window on screen (though not necessarily using NSRunAlertPanel), process the user response, await the async callbacks and exit when your cleanup is done.

No, if your app does not return from applicationShouldTerminate: within a certain number of seconds, your process will simply be killed.

-Jeff

_______________________________________________

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

  • Follow-Ups:
    • Re: Using NSTerminateLater with a Status Item
      • From: Olivier Lance <email@hidden>
References: 
 >Using NSTerminateLater with a Status Item (From: Olivier Lance <email@hidden>)
 >Re: Using NSTerminateLater with a Status Item (From: Jeff Johnson <email@hidden>)
 >Re: Using NSTerminateLater with a Status Item (From: "Olivier Lance" <email@hidden>)
 >Re: Using NSTerminateLater with a Status Item (From: "email@hidden" <email@hidden>)

  • Prev by Date: Re: Community Suggestions on Encryption
  • Next by Date: Re: Re: Sharing a model
  • Previous by thread: Re: Using NSTerminateLater with a Status Item
  • Next by thread: Re: Using NSTerminateLater with a Status Item
  • Index(es):
    • Date
    • Thread