Re: LaunchServices vs exec()
Re: LaunchServices vs exec()
- Subject: Re: LaunchServices vs exec()
- From: Donald Hall <email@hidden>
- Date: Thu, 13 Mar 2003 00:10:39 -0700
What about using 'open'? The man page says this is the same as double
clicking the item in the Finder.
Don
At 4:57 AM -0800 2003/03/12, email@hidden wrote:
On Tue, Mar 11, 2003 at 11:05:18PM -0800, email@hidden wrote:
Given a path to an application either CLI or OSX application, which
should I use to launch it? should I use the combination of
FSRefMakePath and LaunchServices or should I use exec()?
Both. If it's a bundled OS X app, Classic app, or Carbon app with
resource fork, you can use LaunchServices - you don't need
FSRefMakePath because LaunchServices provides LSOpenFSRef(). If it's
a Unix app, then use exec and friends.
--
=Nicholas Riley <email@hidden> | <http://www.uiuc.edu/ph/www/njriley>
Pablo Research Group, Department of Computer Science and
Medical Scholars Program, University of Illinois at Urbana-Champaign
--
Donald S. Hall, Ph.D.
Apps & More Software Design, Inc.
email@hidden
http://www.appsandmore.com
_______________________________________________
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.