• 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
Defer opening documents until app is fully inited
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Defer opening documents until app is fully inited
      • From: edward taffel <email@hidden>
  • Prev by Date: Writing, then reading JSON
  • Next by Date: Re: NSOutlineView not lazy when expanding items :(
  • Previous by thread: Re: Writing, then reading JSON
  • Next by thread: Re: Defer opening documents until app is fully inited
  • Index(es):
    • Date
    • Thread