• 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: applicationShouldTerminate and DAUnmount callbacks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >applicationShouldTerminate and DAUnmount callbacks (From: Jim O'Connor <email@hidden>)
 >Re: applicationShouldTerminate and DAUnmount callbacks (From: Jeff Johnson <email@hidden>)
 >Re: applicationShouldTerminate and DAUnmount callbacks (From: Jim O'Connor <email@hidden>)

  • Prev by Date: Re: applicationShouldTerminate and DAUnmount callbacks
  • Previous by thread: Re: applicationShouldTerminate and DAUnmount callbacks
  • Index(es):
    • Date
    • Thread