• 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: Launching an App without NSWorkspace?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Launching an App without NSWorkspace? (From: Isaac Sherman <email@hidden>)

  • Prev by Date: Re: Launching an App without NSWorkspace?
  • Next by Date: Re: Launching an App without NSWorkspace?
  • Previous by thread: Re: Launching an App without NSWorkspace?
  • Next by thread: Re: Launching an App without NSWorkspace?
  • Index(es):
    • Date
    • Thread