• 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: Re: How to make my application open file directly from Finder?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re: How to make my application open file directly from Finder?


  • Subject: Re: Re: How to make my application open file directly from Finder?
  • From: Raul <email@hidden>
  • Date: Tue, 17 Oct 2006 22:37:38 +0200

I's not Document Based application.

In other systems , the parameter argv is what you can take to do
things about input filenames.

I only what to know , if finder open a file with my application and
then i code to do the things to handle and open this file.

Thanks.


If I understand you properly, you're describing a document-based application. If you've created an XCode project using the "Cocoa Application" template, then you're missing all the automatic machinery that allows you to handle documents.

   If you create a new XCode project using the "Cocoa Document-based
Application" template, the behavior you described is automatically
handled for you. All you need to do is supply the Document Type
information in your project and it "just works".

   Give this *entire document* a thorough read: http://
developer.apple.com/documentation/Cocoa/Conceptual/Documents/index.html

   That should get you going.

--
I.S.



> Hi ,
>
> I see that some programs can open files directly fromfinder.
>
> How to get the filename attribute when you open file from Finder?
>
> Thanks.
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Cocoa-dev mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> 40gmail.com
>
> This email sent to email@hidden


_______________________________________________
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: Re: Re: How to make my application open file directly from Finder?
      • From: "Shawn Erickson" <email@hidden>
    • Re: How to make my application open file directly from Finder?
      • From: Nick Zitzmann <email@hidden>
References: 
 >How to make my application open file directly from Finder? (From: Raul <email@hidden>)
 >Re: How to make my application open file directly from Finder? (From: "I. Savant" <email@hidden>)

  • Prev by Date: How to capture Key event in a NSApp?
  • Next by Date: Re: How to make my application open file directly from Finder?
  • Previous by thread: Re: How to make my application open file directly from Finder?
  • Next by thread: Re: How to make my application open file directly from Finder?
  • Index(es):
    • Date
    • Thread