Re: How to use NSWorkspace?

2008-12-09 Thread Nathan Day
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:

Re: How to use NSWorkspace?

2008-12-08 Thread Rob Keniger
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

Re: How to use NSWorkspace?

2008-12-08 Thread Mike Abdullah
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.

How to use NSWorkspace?

2008-12-07 Thread John Velman
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

Re: How to use NSWorkspace?

2008-12-07 Thread Mike Abdullah
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

Re: How to use NSWorkspace?

2008-12-07 Thread Rob Keniger
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