Re: different launch methods
Re: different launch methods
- Subject: Re: different launch methods
- From: "M. Uli Kusterer" <email@hidden>
- Date: Tue, 7 Oct 2003 14:27:33 +0200
At 9:20 Uhr +0200 07.10.2003, Damien Pacaud wrote:
Well I need this because, when I open he file through the menu, it
should diplay and when i drag and drop it on the icon, it should
open a wizzard of sme kind...;
Those are the specs for the app, and there is not much i can do about it...
Alastair pretty much already said what's my opinion about such
specs. Try to avoid such nonstandard behavior, or your users will be
surprised or hurt. And before I again get my foot stuck in my mouth,
let's offer some possible solutions.
I found a "workaround" but don't like it very much...
I can think of one approach, and one "hack" that uses that approach
to fake the behavior you want:
Split your applications into two parts. One is the Droplet that
opens the Wizard when a file is dropped on it, and the other is the
regular application that contains all the Beef. You can simply make
the Droplet send a special Apple Event (I'm sure there's a more
Cocoa-ish way to do this, use that instead of Apple Events if you
like) to the Beef app, causing it to show the Wizard.
You could then embed the actual Beef app in the Droplet's bundle
(aka package). Make the Beef application register for your document
types, so the Finder will pick it for opening (haven't tried that,
but it might work), and when the user drops a file on the Droplet, it
will obviously open with the Wizard.
But I think, just extracting the droplet from the actual app would
be the smarter approach. You get the "droplet" behavior, but the
actual app still behaves consistently, just like any other app on the
Mac.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.