Re: help with launching a separate application
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.