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" <cresa...@me.com> 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 (Cocoa-dev@lists.apple.com)
>
>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:
>http://lists.apple.com/mailman/options/cocoa-dev/garywade%40desisoftsystem
>s.com
>
>This email sent to garyw...@desisoftsystems.com


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to