You probable do not have AppKit include into you command line tool
(under the 'External Frameworks and Libraries' folder) either add it
to your project or look at LaunchServices which is easy to use, I have
an example/wrapper on my web site.
On 08/12/2008, at 11:07 , John Velman wrote:
On 08/12/2008, at 8:59 PM, Mike Abdullah wrote:
You probably don't want to use NSWorkspace to do this. You should
use NSTask to run command line tools.
I'm pretty certain he's doing the reverse. Wants to launch a proper
application FROM a command-line tool.
Yeah, you're right, sorry
On 8 Dec 2008, at 00:45, Rob Keniger wrote:
On 08/12/2008, at 10:07 AM, John Velman wrote:
I want to use NSWorkspace to open an application from a command line
Foundation Tool.
You probably don't want to use NSWorkspace to do this. You should
use NSTask to run command line tools.
I'm missing something obvious, but I don't know what.
I want to use NSWorkspace to open an application from a command line
Foundation Tool.
When I try to build the simplest thing, I get
--
Undefined symbols:
.objc_class_name_NSWorkspace, referenced from:
[EMAIL
NSWorkspace is part of AppKit, so you need to link against that, not
just Foundation. Alternatively, you could drop down directly to the
Launch Services functions.
On 8 Dec 2008, at 00:07, John Velman wrote:
I'm missing something obvious, but I don't know what.
I want to use NSWorkspace
On 08/12/2008, at 10:07 AM, John Velman wrote:
I want to use NSWorkspace to open an application from a command line
Foundation Tool.
You probably don't want to use NSWorkspace to do this. You should use
NSTask to run command line tools.
--
Rob Keniger