Re: Web Browser Problem
Re: Web Browser Problem
- Subject: Re: Web Browser Problem
- From: Ryan Britton <email@hidden>
- Date: Thu, 20 Jul 2006 08:25:16 -0700
Use the slightly more complex variant of the openURL: method.
http://developer.apple.com/documentation/Cocoa/Reference/
ApplicationKit/Classes/NSWorkspace_Class/Reference/Reference.html#//
apple_ref/occ/instm/NSWorkspace/
openURLs:withAppBundleIdentifier:options:additionalEventParamDescriptor:
launchIdentifiers:
On Jul 20, 2006, at 8:08 AM, Aalok wrote:
Hi,
I want to open a URL in Safari on an button event.
I have two ways of doing it.
1) use applescript and open the page. the problem here is if I have a
home page set, it opens two windows on the event.
2) use NSWorkspace's openURL method. But if my default browser is set
to FireFox, it opens page in FireFox and not in Safari. I want it to
open in Safari only.
Is there any other way or work around to do this?
Regards,
Aalok
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden