Defer opening documents until app is fully inited
Defer opening documents until app is fully inited
- Subject: Defer opening documents until app is fully inited
- From: "Mills, Steve" <email@hidden>
- Date: Fri, 19 Sep 2014 16:12:19 +0000
- Thread-topic: Defer opening documents until app is fully inited
Our app init (called from applicationWillFinishLaunching) needs to put up some modal dialogs. When one of these modals is dismissed, NSApplication proceeds to call application:openFiles:, but we haven't returned from applicationWillFinishLaunching yet, so we're not ready. I'm sure others have needed to work around this. What's the best way? Simply cache the list of files send to application:openFiles: and then open them later in applicationDidFinishLaunching?
--
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