On Jul 1, 2008, at 8:53 AM, Kyle Sluder wrote:

On Tue, Jul 1, 2008 at 11:30 AM, Jason Coco <[EMAIL PROTECTED]> wrote:
You could also use /usr/bin/open -- then you wouldn't have to know where
safari lives.

Abaddesignsayswhat?  What do you think open uses anyway?  ;-)

With out looking at the source, I'd guess a whole heaping mess of LaunchServices code. If the choice is between exec directly or exec open, open is hands down the better choice.

Of course, they're both bad choices. As several people have pointed out, NSWorkspace launchApplication or openURL depending on the requirements. If it's not possible to use NSWorkspace (i.e. because you can't link against AppKit) consider NSTask or using LaunchServices. But unless you have a SPECIFIC, low level requirement exec is the wrong API.

-Kevin Elliott
DTS Engineer
[EMAIL PROTECTED]
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to