• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Web Browser Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Web Browser Problem (From: Aalok <email@hidden>)

  • Prev by Date: Re: Web Browser Problem
  • Next by Date: Re: performSelectorOnMainThread
  • Previous by thread: Re: Web Browser Problem
  • Next by thread: webview and all widget access
  • Index(es):
    • Date
    • Thread