• 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: Document being reopened on launch during modal dialog
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Document being reopened on launch during modal dialog


  • Subject: Re: Document being reopened on launch during modal dialog
  • From: "Mills, Steve" <email@hidden>
  • Date: Tue, 06 May 2014 18:55:41 +0000
  • Thread-topic: Document being reopened on launch during modal dialog

On May 6, 2014, at 13:44:42, Quincey Morris <email@hidden> wrote:

> On May 6, 2014, at 11:23 , Mills, Steve <email@hidden> wrote:
>
>> I'm looking at a crash log for our app that shows our app is initting. During init ([NSApplication finishLaunching]) we discover a problem and put up a modal dialog using [NSApplication runModalForWindow:]. During this modal run loop, something has decided that it would be a great time to handle the reopen event, so [NSDocumentController reopenDocumentForURL:withContentsOfURL:display:completionHandler:] is called and we open a document while the modal dialog is up, and before we've totally finished handling [NSApplication finishLaunching].
>
> It sounds like you’re Doing It Wrong™. Well, sorta j/k, but seriously you’re overriding ‘finishLaunching’?

No. What I mean is that finishLaunching is still being executed. We're in [FinaleAppDelegate applicationWillFinishLaunching:] (like you mentioned later), which is where we call our cross-platform InitApp function to load things up, set up audio, etc. The audio engine has discovered a sample rate mismatch and is telling the user about it via modal dialog.

--
Steve Mills
office: 952-818-3871
home: 952-401-6255


_______________________________________________

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


  • Follow-Ups:
    • Re: Document being reopened on launch during modal dialog
      • From: Quincey Morris <email@hidden>
    • Re: Document being reopened on launch during modal dialog
      • From: Kyle Sluder <email@hidden>
References: 
 >Document being reopened on launch during modal dialog (From: "Mills, Steve" <email@hidden>)
 >Re: Document being reopened on launch during modal dialog (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: Document being reopened on launch during modal dialog
  • Next by Date: Re: Document being reopened on launch during modal dialog
  • Previous by thread: Re: Document being reopened on launch during modal dialog
  • Next by thread: Re: Document being reopened on launch during modal dialog
  • Index(es):
    • Date
    • Thread