• 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: NSDocument saveDocumentWithDelegate deadlocked during App termination
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >NSDocument saveDocumentWithDelegate deadlocked during App termination (From: Keith Knauber <email@hidden>)

  • Prev by Date: NSDocument saveDocumentWithDelegate deadlocked during App termination
  • Next by Date: Re: Need advice: Object ownership and threading issue, causing a rare crash.
  • Previous by thread: NSDocument saveDocumentWithDelegate deadlocked during App termination
  • Next by thread: NSInputStream get NSStreamEventEndEncountered without reason
  • Index(es):
    • Date
    • Thread