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

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.

  • Follow-Ups:
    • Re: WebView - New Window Problem
      • From: Robert Borsuk <email@hidden>
  • Prev by Date: Data-aware controls (text fields, grids, etc.) for Cocoa?
  • Next by Date: Re: Responding to menu items
  • Previous by thread: Data-aware controls (text fields, grids, etc.) for Cocoa?
  • Next by thread: Re: WebView - New Window Problem
  • Index(es):
    • Date
    • Thread