Re: [WebFrame url] -- How to get the initial URL from WebView or WebFrame?
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