Re: Using NSTerminateLater with a Status Item
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