WebView - New Window Problem
WebView - New Window Problem
- Subject: WebView - New Window Problem
- From: Joe Lester <email@hidden>
- Date: Wed, 24 Sep 2003 17:52:05 -0500
I'm having trouble getting my WebView to pop open new windows. I
believe that I have completed all the steps outlined in the
documentation to make this feature work.
1. [webView setUIDelegate:self];
2. [webView setGroupName:@"MyWebView"];
3. Implemented the delegate method webView:createWebViewWithRequest:
4. Implemented the delegate method webViewShow:
I think my biggest problem is that, when
webView:createWebViewWithRequest: is messaged, after the user clicks on
a web link to open a new window, the NSURLRequest I receive is null.
Then... my implementation of webViewShow: does not get messaged at all!
Any ideas?
- (WebView *)webView:(WebView *)sender
createWebViewWithRequest:(NSURLRequest *)request
{
NSLog(@"%@", request); //Is (null)
WebView *aWebView = [[WebView alloc] initWithFrame:[webView frame]
frameName:[[request URL]
absoluteString]
groupName:@"MyWebView"];
[[aWebView mainFrame] loadRequest:request];
return [aWebView autorelease];
}
- (void)webViewShow:(WebView *)sender
{
NSLog(@"webViewShow"); //Never messaged
}
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.