• 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: "Gary L. Wade" <email@hidden>
  • Date: Thu, 27 Jan 2011 10:05:25 -0800
  • Thread-topic: Internal target="_blank" NSRequests are NIL.

My needs were to launch such windows in the default web browser rather
than any of my own windows, but I believe you'd do something similar by
using WebPolicyDelegate and add the method

-webView:decidePolicyForNewWindowAction:request:newFrameName:decisionListen
er:

Depending on further needs, you may also want to look at the method

-webView:decidePolicyForNavigationAction:request:frame:decisionListener:

On 01/27/2011 7:30 AM, "Bruce Cresanta" <email@hidden> 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?
>
>Bruce
>_______________________________________________
>
>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:
>s.com
>
>This email sent to email@hidden


_______________________________________________

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: Programmatically create view and handle events
  • Next by Date: Re: UITableView: Delay select recognition
  • Previous by thread: Re: Internal target="_blank" NSRequests are NIL.
  • Next by thread: Re: Internal target="_blank" NSRequests are NIL.
  • Index(es):
    • Date
    • Thread