• 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: File references
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: File references


  • Subject: Re: File references
  • From: "Dennis C.De Mars" <email@hidden>
  • Date: Fri, 5 Mar 2004 23:56:05 -0800

I _think_ that all you have to do is, in your application delegate, implement "application:openFile:", which should be called for each file that is double clicked or dragged onto the application icon. See the documentation for NSApplication for details.

- Dennis D.

On Mar 5, 2004, at 11:34 PM, James Stroud wrote:

Dear anyone,

I have been looking through three cocoa books for about 2 hours, still I can not find what should be fundamental to any application.

Does anyone know how to get references to the files that were dropped onto an application or double clicked from finder? I have no need for "document based application". I don't want to open a document and represent the contents with my application, I just want to do something with the file. I don't want to use applescript and make a droplet (can't "change all" in the "open with" in the "get info" dialog--AS droplets seem to be broken in this way). I want to do this from a cocoa application. All I want is the path names to the dropped/double clicked files. One would think this would be easy, but I can not find it in Hilegass, Building cocoa apps, or cocoa programming (sams). So I have looked and looked hard. Sorry if this is somewhere obvious, but I feel I've paid my RTFM dues on this one. Please help.

James
_______________________________________________
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.
_______________________________________________
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.


References: 
 >File references (From: James Stroud <email@hidden>)

  • Prev by Date: File references
  • Next by Date: App without a menu, but with a dock icon?
  • Previous by thread: File references
  • Next by thread: App without a menu, but with a dock icon?
  • Index(es):
    • Date
    • Thread