• 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
Start application by dragging a file on it
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Start application by dragging a file on it
      • From: James McConnell <email@hidden>
  • Prev by Date: Re: Faking large arrays in bindings to satisfy sparse data...
  • Next by Date: Re: newbie EXC_BAD_ACCESS
  • Previous by thread: Priting Multiple View -(Sorry to ask but i m :-(( )
  • Next by thread: Re: Start application by dragging a file on it
  • Index(es):
    • Date
    • Thread