WebView in NSTabView
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