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

Re: WebView in NSTabView


  • Subject: Re: WebView in NSTabView
  • From: Mike Abdullah <email@hidden>
  • Date: Wed, 27 Oct 2010 14:02:18 +0100

It looks to me like the WebView isn't overlaid on your other views. However, the video is.

This is probably because videos are displayed using Core Animation, pushing it above all other views. Things to try:

- Hide the webview when tab changes
- Make your tabview layer-backed too
- WebView has some APIs for controlling host window, and how to behave when not in a window. Play with that

On 26 Oct 2010, at 09:33, Ivan C Myrvold wrote:

> 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

_______________________________________________

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:
    • custom outline view
      • From: Rajendran P <email@hidden>
References: 
 >WebView in NSTabView (From: Ivan C Myrvold <email@hidden>)

  • Prev by Date: Writing an Uninstaller
  • Next by Date: custom outline view
  • Previous by thread: WebView in NSTabView
  • Next by thread: custom outline view
  • Index(es):
    • Date
    • Thread