Force tabViewType to be something we support. To be fixed in a later branch to add other renderings for tabview since this branch is specific to controllers

This commit is contained in:
Gregory John Casamento 2020-07-26 05:37:25 -04:00
parent 7bb2123da6
commit d41635855f
5 changed files with 18 additions and 4 deletions

View file

@ -170,6 +170,16 @@
{
NSTabView *tv = [coder decodeObjectForKey: @"NSTabView"];
[self setTabView: tv];
// Currently we only support the tabs being on the top or the bottom.
// The rendering code doesn't support anything outside of these two
// cases. Here we force the use of the top case, when it is outside
// of either of the cases we handle... this is temporary. FIXME
if ([tv tabViewType] != NSTopTabsBezelBorder &&
[tv tabViewType] != NSBottomTabsBezelBorder)
{
[tv setTabViewType: NSTopTabsBezelBorder];
}
}
if ([coder containsValueForKey: @"NSTabViewItems"])
{