• 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: launch cocoa app with argument
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: launch cocoa app with argument


  • Subject: Re: launch cocoa app with argument
  • From: "Daniel Angermeier" <email@hidden>
  • Date: Fri, 9 Jun 2006 17:11:40 +0200

actually I don't want to open files with specific apps in my
application but I want that a user can open certain file types with my
application from the finder ("open with...").
and how can this be done if my app is already running. does it have to
register for a certain event ?

On 6/9/06, Sherm Pendley <email@hidden> wrote:
On Jun 9, 2006, at 9:37 AM, Daniel Angermeier wrote:

> I would like to be able to launch my cocoa app with certain files,
> e.g. jpg or audio files. How can that be done ?

Have a look at the -openFile:withApplication: method in NSWorkspace.

sherm--

Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org


_______________________________________________
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: launch cocoa app with argument
      • From: George Orthwein <email@hidden>
References: 
 >launch cocoa app with argument (From: "Daniel Angermeier" <email@hidden>)
 >Re: launch cocoa app with argument (From: Sherm Pendley <email@hidden>)

  • Prev by Date: Re: Open safari and send post variables
  • Next by Date: Re: launch cocoa app with argument
  • Previous by thread: Re: launch cocoa app with argument
  • Next by thread: Re: launch cocoa app with argument
  • Index(es):
    • Date
    • Thread