• 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: help with launching a separate application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: help with launching a separate application


  • Subject: Re: help with launching a separate application
  • From: Sherm Pendley <email@hidden>
  • Date: Thu, 1 May 2003 20:20:51 -0400

On Thursday, May 1, 2003, at 04:31 PM, Charles Bennion wrote:

I normally only use AppleScript and AppleScript Studio but i am working on learning to build in Cocoa.

Minor nit - ASK *is* Cocoa. What you're learning now is Objective-C. ;-)

I have reach a snag to where I can not find any decent documentation on how to launch another application from a NSMenu item in my project.

Check out the docs for NSWorkspace - it has a number of methods for doing what you want. If you want to launch a specific app, there's launchApplication:. If you want to open a file, there's openFile:, or if you want to specify the app to open it with, there's openFile:withApplication:.

sherm--

"I have no special gift, I am only passionately curious." - Albert Einstein
_______________________________________________
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: 
 >help with launching a separate application (From: Charles Bennion <email@hidden>)

  • Prev by Date: Re: [ANN] Open Source graphing view framework released
  • Next by Date: Re: Writing in the Finder Comment field
  • Previous by thread: help with launching a separate application
  • Next by thread: curl and iTunes 4.0
  • Index(es):
    • Date
    • Thread