Re: WebView - New Window Problem
Re: WebView - New Window Problem
- Subject: Re: WebView - New Window Problem
- From: Robert Borsuk <email@hidden>
- Date: Thu, 25 Sep 2003 09:15:06 -0400
Hi,
I figure I would answer this one since nobody else grabbed it. First
thing I would suggest would be to check out the Apple mailing list
site. They have a list for WebKit users. I'm on the list, it's pretty
low traffic but seems the more appropriate place to ask this. Now, not
being an expert on WebKit, though while working on my third project, I
found that some of the delegates don't get called. I tried
implementing a whole slew of delegates and found that a bunch of them
weren't getting called. Maybe I was missing something too, but I did
read the documentation over a couple of times and did search the web
archives about it (also available from the Apple site).
My best advice is to repost your question to the WebKit list and see
what happens. It seems to me (and please, this is only my opinion) that
Apple has a ways to go on WebKit.
Rob
email@hidden
On Wednesday, September 24, 2003, at 06:52 PM, Joe Lester wrote:
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.
_______________________________________________
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.