• 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: Internal target="_blank" NSRequests are NIL.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Internal target="_blank" NSRequests are NIL.


  • Subject: Re: Internal target="_blank" NSRequests are NIL.
  • From: Izidor Jerebic <email@hidden>
  • Date: Fri, 28 Jan 2011 11:25:13 +0100

On 27.1.2011, at 16:30, Bruce Cresanta wrote:

> I am trying to redirect <a target="_blank" >  requests to a new window.    I set the UIDelegate and implement the method:
>
> - (WebView *)webView:(WebView *)sender createWebViewWithRequest:(NSURLRequest *)request
>
> The request parameter is always coming across as nil when I select a link in the WebView that targets _blank.
>
> Any ideas?

The request parameter is always nil - that is how WebKit works.

The returned webview will get another message later to load correct request (or maybe none in case of _blank, not sure about this particular case).

izidor

_______________________________________________

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

References: 
 >Internal target="_blank" NSRequests are NIL. (From: Bruce Cresanta <email@hidden>)

  • Prev by Date: Re: Implementing a Find menu item like Safari?
  • Next by Date: what are the disadvantages in keeping libraries and input files inside app bundle
  • Previous by thread: Re: Internal target="_blank" NSRequests are NIL.
  • Next by thread: Re: Delay select recognition
  • Index(es):
    • Date
    • Thread