ADC Home > Reference Library > Technical Q&As > Cocoa > User Experience >

Solving NSTabView drawing problems in Mac OS X 10.1.x


Q: Why do my tabless NSTabViews have this weird white border around them and/or progressively draw their shadows darker and darker?

A: This is a bug in Mac OS X version 10.1.x that will be fixed in the next major version of Mac OS X. You can work around the bug by using a custom subclass of NSTabView and implementing the code in Listing 1.



 - (BOOL)isOpaque {
    if ([self tabViewType]==NSNoTabsBezelBorder && NSAppKitVersionNumber<633) return NO;
          else return [super isOpaque];
}

Listing 1.




[Feb 14 2002]


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.