On Tue, Jul 1, 2008 at 11:04 AM, Gregory Weston <[EMAIL PROTECTED]> wrote:
> Barrie Green wrote:
>
>> Hi all,
>>
>> I want to write a quick little cocoa app that fires off Safari.
>>
>> ...
>>
>> Ideally I would like to run the app without it asking me for my
>> password, how could I achieve that?
>
> Considering that I can think of no common purpose for "launch Safari" that
> doesn't continue with "and show the contents of a designated file or URL"
> I'll point out that the proper way to achieve that goal is NSWorkspace's
> openURL: method. But I'll caution that it doesn't necessarily launch Safari;
> it launches the user's default web browser.

Also note that exec'ing an application and launching it are two very
different things. Running a Mac application via exec is almost never
the right thing to do. Use the appropriate NSWorkspace call (either
openURL: or launchApplication:) and forget about exec.




-- 
Clark S. Cox III
[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