• 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
Document-based App Launching
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Document-based App Launching


  • Subject: Document-based App Launching
  • From: Richard Jackson <email@hidden>
  • Date: Wed, 13 Apr 2005 10:13:46 -0700

This should be simple - but I'm not sure where to look:

I have a Document-based app which is a "Viewer" for specific file types. Since it doesn't create files - it only opens existing files - I've implemented the applicationShouldOpenUntitledFile: delegate and return "NO".

However, this means that when the app is double-clicked and opens the user is presented with a blank screen since there is no document. The usual next step would be to open an existing file, so I'm thinking it would be nice to automatically bring up an "Open..." dialog.

On the other hand, if the user launches the app by dropping a file on the app icon then I want to open that Document and NOT show the Open dialog.

Is there an existing delegate or property that will automatically implement this behavior?

If not, should I implement the applicationDidFinishLaunching: delegate and call openDocument: if no other Documents are open by then?

   TIA,

   - Richard


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Document-based App Launching
      • From: Jonathon Mah <email@hidden>
  • Prev by Date: Re: Tiger development Panther deployment
  • Next by Date: Command line service tool
  • Previous by thread: Re: When do table column bindings get setup from nib?
  • Next by thread: Re: Document-based App Launching
  • Index(es):
    • Date
    • Thread