Re: applicationShouldTerminate and DAUnmount callbacks
Re: applicationShouldTerminate and DAUnmount callbacks
- Subject: Re: applicationShouldTerminate and DAUnmount callbacks
- From: Jeff Johnson <email@hidden>
- Date: Fri, 30 Apr 2010 17:11:16 -0500
Sorry, my confusion. If you return NSTerminateLater, the app will stop running the run loop in NSDefaultRunLoopMode, but it will run the run loop in NSModalPanelRunLoopMode. If your callbacks are only scheduled to be delivered in the default run loop mode, that would explain why you're not getting them.
-Jeff
On Apr 30, 2010, at 4:44 PM, Jim O'Connor wrote:
> Hi Jeff,
>
> I thought that the later response allowed the run loop to continue.
>
> I see that there is a special run loop for this condition though.
>
> Thanks,
> Jim
>
>
> On Apr 30, 2010, at 1:26 PM, Jeff Johnson wrote:
>
>> Hi Jim.
>>
>> The callbacks are delivered on the run loop. If you return NSTerminateCancel, then the run loop will continue running normally, but if you don't, then run loop may stop running. Thus, you may have to run the run loop manually to get your callbacks.
>>
>> -Jeff
>>
>>
>> On Apr 30, 2010, at 4:12 PM, Jim O'Connor wrote:
>>
>>> 10.6.3
>>>
>>> When I get applicationShouldTerminate I send DAUnmount commands and return NSTerminateLater.
>>> My problem is that I don't get the callbacks from the unmount command.
>>> If I return NSTerminateCancel I do get my unmount callbacks.
>>>
>>> Any suggestions would be appreciated.
>>>
>>> Thanks,
>>> Jim
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Filesystem-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden