• 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: [WebFrame url] -- How to get the initial URL from WebView or WebFrame?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [WebFrame url] -- How to get the initial URL from WebView or WebFrame?


  • Subject: Re: [WebFrame url] -- How to get the initial URL from WebView or WebFrame?
  • From: Jeff Johnson <email@hidden>
  • Date: Sat, 3 Nov 2007 12:15:43 -0500

On Nov 3, 2007, at 3:12 AM, Claus Atzenbeck wrote:

Hi all:

I have a WebView and need to get the URL from the Web page currently
shown.

[WebFrame reload], for example, passes "the initial request [...] as an
argument to loadRequest:". How would I get this initial request as NSURL
or NSString?


Cheers,
Claus

Claus,

Try [[[WebFrame dataSource] request] URL]. You can also try [[[WebFrame dataSource] initialRequest] URL], but the URL of the initial request may be different from the URL of the web page currently shown.

-Jeff

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: [WebFrame url] -- How to get the initial URL from WebView or WebFrame?
      • From: Claus Atzenbeck <email@hidden>
References: 
 >[WebFrame url] -- How to get the initial URL from WebView or WebFrame? (From: Claus Atzenbeck <email@hidden>)

  • Prev by Date: Initializing the menubar without Interface Builder
  • Next by Date: Re: Initializing the menubar without Interface Builder
  • Previous by thread: [WebFrame url] -- How to get the initial URL from WebView or WebFrame?
  • Next by thread: Re: [WebFrame url] -- How to get the initial URL from WebView or WebFrame?
  • Index(es):
    • Date
    • Thread