Start application by dragging a file on it
Start application by dragging a file on it
- Subject: Start application by dragging a file on it
- From: Hanspeter Spalinger <email@hidden>
- Date: Sun, 20 Mar 2005 11:53:19 +0100
Hi to all.
I wan't to create a cocoa application able to get started by simply
dragging a file on it.
How do I do that?
In my present app I've created a delegate from NSApplication
application:open, so it shouldbe able to open the file.
My main problem is, that I don't know how to set up the Finder to
accept dragging files on the application. It simply don't work. (The
application don't go gray colored if the file is over it.
Do I have to create a NSDocument application? But I only need to know
the filepath and nothing else from the NSDocument class.
I've too played around with Info.plist, but I didn't find a way.
Is there a description for this in the developer Documentation.
Sorry if this is a FAQ, but I didn't find something about it (I only
find things about the drag and drop manager between running apps not
start up.)
Thanks for advice.
Hanspeter
Attachment:
PGP.sig
Description: Signierter Teil der Nachricht
_______________________________________________
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