FROM : Jonathon Mah
DATE : Wed Apr 13 19:43:58 2005
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_removed>
DATE : Wed Apr 13 19:43:58 2005
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_removed>
| Related mails | Author | Date |
|---|---|---|
| Richard Jackson | Apr 13, 19:13 | |
| Jonathon Mah | Apr 13, 19:43 |






Cocoa mail archive

