• 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: Loading an URL in Safari
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Loading an URL in Safari


  • Subject: Re: Loading an URL in Safari
  • From: Brian Ganninger <email@hidden>
  • Date: Wed, 23 Aug 2006 03:10:04 -0500

I won't type up the actual code, but I will tell you process. :) [use the documentation if you need further clarification]

In your button's associated action use NSWorkspace to open a URL. Note you'll be using an NSURL object as your parameter, so you'll need to set that up prior. The URL will open in the default browser.

This is straight-forward and simple, hopefully these tips will guide.

On Aug 23, 2006, at 2:16 AM, Dimitri Bouniol wrote:

How can I load an URL in Safari, or the default Web Browser, from a button in cocoa?
--
Dimitri Bouniol
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:
40mac.com


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: 
 >Loading an URL in Safari (From: Dimitri Bouniol <email@hidden>)

  • Prev by Date: Re: Loading an URL in Safari
  • Next by Date: Re: Menu-style NSToolbarItem?
  • Previous by thread: Re: Loading an URL in Safari
  • Next by thread: NSTableColumn sort indicator
  • Index(es):
    • Date
    • Thread