• 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: WebView - New Window Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • size of the gray bar at the top of an NSWindow
      • From: Damien Pacaud <email@hidden>
References: 
 >WebView - New Window Problem (From: Joe Lester <email@hidden>)

  • Prev by Date: drawRect auto launch
  • Next by Date: Re: drawRect auto launch
  • Previous by thread: WebView - New Window Problem
  • Next by thread: size of the gray bar at the top of an NSWindow
  • Index(es):
    • Date
    • Thread