Platforms to show: All Mac Windows Linux Cross-Platform

NSTabViewMBS class

Super class: NSViewMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Cocoa Controls MBS MacCocoa Plugin 10.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The Cocoa tabpanel control.

An NSTabView object provides a convenient way to present information in multiple pages. The view contains a row of tabs that give the appearance of folder tabs, as shown in the following figure. The user selects the desired page by clicking the appropriate tab or using the arrow keys to move between pages. Each page displays a view hierarchy provided by your application.

You can embed this view in a CustomNSViewMBS to get more events for mouse and keyboard.
Subclass of the NSViewMBS class.

Constants

Constant Value Description
NSBlueControlTint 1 One of the constants to specify a the control tint. Aqua control tint
NSBottomTabsBezelBorder 2 One of the constants to specify the tab view's type as used by tabViewType. Tabs are on the bottom of the view with a bezeled border.
NSClearControlTint 7 One of the constants to specify a the control tint. Clear control tint
NSDefaultControlTint 0 One of the constants to specify a the control tint. The current default tint setting
NSGraphiteControlTint 6 One of the constants to specify a the control tint. Graphite control tint
NSLeftTabsBezelBorder 1 One of the constants to specify the tab view's type as used by tabViewType. Tabs are on the left of the view with a bezeled border.
NSMiniControlSize 2 One of the values for the ControlSize property. The control has a smaller size than NSSmallControlSize.
NSNoTabsBezelBorder 4 One of the constants to specify the tab view's type as used by tabViewType. The view does not include tabs and has a bezeled border.
NSNoTabsLineBorder 5 One of the constants to specify the tab view's type as used by tabViewType. The view does not include tabs and has a lined border.
NSNoTabsNoBorder 6 One of the constants to specify the tab view's type as used by tabViewType. The view does not include tabs and has no border.
NSRegularControlSize 0 One of the values for the ControlSize property. The control is sized as regular.
NSRightTabsBezelBorder 3 One of the constants to specify the tab view's type as used by tabViewType. Tabs are on the right of the view with a bezeled border.
NSSmallControlSize 1 One of the values for the ControlSize property. This constant is for controls that cannot be resized in one direction, such as push buttons, radio buttons, checkboxes, sliders, scroll bars, pop-up buttons, tabs, and progress indicators. You should use a small system font with a small control.
NSTopTabsBezelBorder 0 One of the constants to specify the tab view's type as used by tabViewType. The view includes tabs on the top of the view and has a bezeled border (the default).

Super class NSViewMBS

Constants

Constant Value Description
NSBezelBorder 2 One of the constants to specify the type of a view's border. A concave border that makes the view look sunken.
NSFocusRingTypeDefault 0 One of the constants for the focusringtype property. The default focus ring type for NSView or NSCell.
NSFocusRingTypeExterior 2 One of the constants for the focusringtype property. The standard Aqua focus ring.
NSFocusRingTypeNone 1 One of the constants for the focusringtype property. No focus ring. If you set the focus ring type to this value, NSView and NSCell will not draw any focus ring.
NSGrooveBorder 3 One of the constants to specify the type of a view's border. A thin border that looks etched around the image.
NSLineBorder 1 One of the constants to specify the type of a view's border. A black line border around the view.
NSNoBorder 0 One of the constants to specify the type of a view's border. No border.
NSViewHeightSizable 16 One of the constants for the autoresizingMask property. The receiver's height is flexible.
NSViewLayerContentsRedrawBeforeViewResize 3 One of the view layer content redraw policy constants.
NSViewLayerContentsRedrawDuringViewResize 2 One of the view layer content redraw policy constants.
NSViewLayerContentsRedrawNever 0 One of the view layer content redraw policy constants.
NSViewLayerContentsRedrawOnSetNeedsDisplay 1 One of the view layer content redraw policy constants.
NSViewMaxXMargin 4 One of the constants for the autoresizingMask property. The right margin between the receiver and its superview is flexible.
NSViewMaxYMargin 32 One of the constants for the autoresizingMask property. The top margin between the receiver and its superview is flexible.
NSViewMinXMargin 1 One of the constants for the autoresizingMask property. The left margin between the receiver and its superview is flexible.
NSViewMinYMargin 8 One of the constants for the autoresizingMask property. The bottom margin between the receiver and its superview is flexible.
NSViewNotSizable 0 One of the constants for the autoresizingMask property. The receiver cannot be resized.
NSViewWidthSizable 2 One of the constants for the autoresizingMask property. The receiver's width is flexible.

Window Order Constants

Constant Value Description
NSWindowAbove 1 Moves the window above the indicated window.
NSWindowBelow -1 Moves the window below the indicated window.
NSWindowOut 0 Moves the window off the screen.

Super class NSResponderMBS

This class has no sub classes.

Some methods using this class:

Some properties using for this class:

Some examples using this class:

Blog Entries


The items on this page are in the following plugins: MBS MacBase Plugin, MBS MacCocoa Plugin.


NSTabViewItemMBS   -   NSTaskMBS


The biggest plugin in space...