Re: NSDocument saveDocumentWithDelegate deadlocked during App termination
Re: NSDocument saveDocumentWithDelegate deadlocked during App termination
- Subject: Re: NSDocument saveDocumentWithDelegate deadlocked during App termination
- From: Kyle Sluder <email@hidden>
- Date: Fri, 03 May 2013 14:30:07 -0700
On Fri, May 3, 2013, at 01:32 PM, Keith Knauber wrote:
> How do I force *all* NSDocument dialogs to be handled SYNCHRONOUSLY?
You don't.
>
> NSDocument continues to be a software maintenance nightmare.
I agree, but until Apple simplifies the API, correctly dealing with
NSDocument will simply require a lot of learning.
>
> Asynchronous NSDocument dialogs should be the exception, not the rule,> *especially* in these cases:
>
> NSApp knows its being asked to terminate.
> NSApp knows it hasn't finished loading.
What case are you trying to handle here? NSApp can't be asked to
terminate before it's finished loading; since the main thread is busy
running code, neither the menu bar nor the AppleEvent handler can
possibly handle the termination request.
Did you mean to say you want to quit the app while _documents_ are still
loading? If so, what does this have to do with synchronous dialogs?
--Kyle Sluder
_______________________________________________
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