Document being reopened on launch during modal dialog
Document being reopened on launch during modal dialog
- Subject: Document being reopened on launch during modal dialog
- From: "Mills, Steve" <email@hidden>
- Date: Tue, 06 May 2014 18:23:56 +0000
- Thread-topic: Document being reopened on launch during modal dialog
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].
Why would reopen choose to be handled during a modal dialog loop? How can we prevent this poor design choice from happening?
--
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