• 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 in NSTabView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

WebView in NSTabView


  • Subject: WebView in NSTabView
  • From: Ivan C Myrvold <email@hidden>
  • Date: Tue, 26 Oct 2010 10:33:38 +0200

My application has an NSTabView with three tabs. The second tab, EPG, has an ordinary NSTableView:
http://www.myrvold.org/cocoa/myrdream/images/epgbefore.jpg

The third tab, WebTV, has a WebView, which fetches content from a local Linux satellite box:
http://www.myrvold.org/cocoa/myrdream/images/webtv.jpg

The problem starts when I switch from the WebTV tab back to the other tabs. The WebView is then overlayed the other views:
http://www.myrvold.org/cocoa/myrdream/images/epgafter.jpg

The tabView:didSelectTabViewItem: method is this (owebView is an outlet to WebView layed out in IB):

NSString *host = [[oconnectionInfo selection] valueForKey:@"server"];
NSString *urlstr = [NSString stringWithFormat:@"http://%@/web-data/streaminterface.html";, host];
NSURL *url = [NSURL URLWithString:urlstr];

[[owebView mainFrame] loadRequest:[NSURLRequest requestWithURL:url]];

What should I do to avoid the WebView to appear in the other two tabs?_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: WebView in NSTabView
      • From: Mike Abdullah <email@hidden>
  • Prev by Date: Re: Programmatically adjusting NSValueTransformer of a bound NSTextField
  • Next by Date: Re: NSFileManager and Resource Forks
  • Previous by thread: No Driver Dependencies
  • Next by thread: Re: WebView in NSTabView
  • Index(es):
    • Date
    • Thread