• 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: Grabbing the current URL of a webview
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Grabbing the current URL of a webview


  • Subject: Re: Grabbing the current URL of a webview
  • From: Evan Schoffstall <email@hidden>
  • Date: Fri, 01 Jul 2011 20:34:25 -0400

Given mywebView without a loaded URL and the following code:

log mywebView()

        log mywebView()'s mainFrame()

        log mywebView()'s mainFrame()'s dataSource()

        log mywebView()'s mainFrame()'s dataSource()'s request()

        log mywebView()'s mainFrame()'s dataSource()'s request()'s URL()

        log mywebView()'s mainFrame()'s dataSource()'s request()'s URL()'s absoluteString()


the output is:

2011-07-01 20:31:16.286 Refreshing[21423:903] 

WebView: 0x20096bd00>

2011-07-01 20:31:16.287 Refreshing[21423:903] <WebFrame: 0x2004459c0>

2011-07-01 20:31:16.287 Refreshing[21423:903] (null)

2011-07-01 20:31:16.288 Refreshing[21423:903] NSObject

2011-07-01 20:31:16.304 Refreshing[21423:903] *** -[RefreshingAppDelegate getCurrentWebViewURL:]: No result was returned from some part of this _expression_. (error -2763)


given mywebView with a loaded URL the output is:

2011-07-01 20:32:24.833 Refreshing[21423:903] <WebView: 0x20096bd00>

2011-07-01 20:32:24.833 Refreshing[21423:903] <WebFrame: 0x2004459c0>

2011-07-01 20:32:24.834 Refreshing[21423:903] <WebDataSource: 0x20002e560>

2011-07-01 20:32:24.835 Refreshing[21423:903] <NSMutableURLRequest http://www.google.com/>

2011-07-01 20:32:24.835 Refreshing[21423:903] <NSAppleEventDescriptor: 'obj '{ 'form':'indx', 'want':'url ', 'seld':[  ], 'from':'obj '{ 'form':'ID  ', 'want':'ocid', 'seld':'kptr'($007D2A0002000000$), 'from':'null'() } }>

2011-07-01 20:32:24.836 Refreshing[21423:903] NSObject




so the request and not the request's URL then?
-- 
Evan Schoffstall
Sent with Sparrow

On Friday, July 1, 2011 at 8:28 PM, Shane Stanley wrote:


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Grabbing the current URL of a webview
      • From: Shane Stanley <email@hidden>
References: 
 >Re: Grabbing the current URL of a webview (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: Grabbing the current URL of a webview
  • Next by Date: Re: Grabbing the current URL of a webview
  • Previous by thread: Re: Grabbing the current URL of a webview
  • Next by thread: Re: Grabbing the current URL of a webview
  • Index(es):
    • Date
    • Thread