Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: exec(uting) Safari - How (newbie)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: exec(uting) Safari - How (newbie)



On Tue, Jul 1, 2008 at 8:17 PM, Kevin Elliott <email@hidden> wrote:
> 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.

I was even more concerned about the env pollution necessary for exec
to work as described ("not needing to know where Safari lives").  exec
is just a bad idea all around for anything outside of the BSD
environment.

--Kyle Sluder
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

References: 
 >exec(uting) Safari - How (newbie) (From: "Barrie Green" <email@hidden>)
 >Re: exec(uting) Safari - How (newbie) (From: Kristopher Matthews <email@hidden>)
 >Re: exec(uting) Safari - How (newbie) (From: Jason Coco <email@hidden>)
 >Re: exec(uting) Safari - How (newbie) (From: "Kyle Sluder" <email@hidden>)
 >Re: exec(uting) Safari - How (newbie) (From: Kevin Elliott <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.