Re: Launching an App without NSWorkspace?
Re: Launching an App without NSWorkspace?
- Subject: Re: Launching an App without NSWorkspace?
- From: Hsu <email@hidden>
- Date: Wed, 4 Sep 2002 20:26:42 -0700
How about:
+ (BOOL) launchApplicationAtPath:(NSString *)path {
FSRef inItemRef;
FSPathMakeRef([aPath fileSystemRepresentation], &inItemRef, NULL);
OSStatus err = LSOpenFSRef(itemRefPtr, NULL);
if (err == 0) {
return YES;
}
return NO;
}
On Wednesday, September 4, 2002, at 12:27 PM, Isaac Sherman wrote:
How would I go about launching an app without using NSWorkspace? I'm
writing a tool, and would rather not link against Appkit just to open a
file, or launch an App in the finder. In terminal you can just use
open,
but I'm a Unix newbie and I'm not sure where I'd look for an answer to
something so (seemingly) basic. I won't even mind an RTFM, as long as
I
find out which FM I should read. ;)
TIA,
--
Isaac Sherman
MotaSoft Software
http://homepage.mac.com/huperzoevs/
_______________________________________________
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.
--
Some mornings it just doesn't seem worth it to chew through the leather
straps.
Homepage:
http://homepage.mac.com/khsu/index.html
_______________________________________________
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.