FROM : Ryan Britton
DATE : Thu Jul 20 17:25:16 2006
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_removed>)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
> This email sent to <email_removed>
DATE : Thu Jul 20 17:25:16 2006
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_removed>)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
> This email sent to <email_removed>
| Related mails | Author | Date |
|---|---|---|
| Aalok | Jul 20, 17:08 | |
| Michael Watson | Jul 20, 17:13 | |
| Ryan Britton | Jul 20, 17:25 |






Cocoa mail archive

