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

Re: Document-based App Launching


  • Subject: Re: Document-based App Launching
  • From: Jonathon Mah <email@hidden>
  • Date: Thu, 14 Apr 2005 03:13:58 +0930

On 14 Apr 2005, at 02:43, Richard Jackson wrote:

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.

I don't think that's such a nice idea, myself. Oftentimes I will bring up LaunchBar and open an application, then use the Finder to locate the item I want to open (so by the time I open it the app is launched and ready). As an example, Preview doesn't bring up an open panel.


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?

Almost definitely no.

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

Yep. If you decide to go this route, think about what you want to happen when the user clicks the dock icon when no documents are open, too. You might want to bring up another open panel.



Jonathon Mah email@hidden

_______________________________________________
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


References: 
 >Document-based App Launching (From: Richard Jackson <email@hidden>)

  • Prev by Date: Re: When do table column bindings get setup from nib?
  • Next by Date: Re: Suppressing the "Couldn't save document" sheet
  • Previous by thread: Document-based App Launching
  • Next by thread: Command line service tool
  • Index(es):
    • Date
    • Thread