Platforms to show: All Mac Windows Linux Cross-Platform

NSBoxMBS class

Super class: NSViewMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Cocoa Controls MBS MacControls Plugin 10.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The NSBox class implements simple views that can title themselves and draw a border around their content.

These objects are known as boxes. You can use box to group, visually, some number of other views.

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
NSAboveBottom 4 One of the constants for the title position. Title positioned above the box's bottom border.
NSAboveTop 1 One of the constants for the title position. Title positioned above the box's top border.
NSAtBottom 5 One of the constants for the title position. Title positioned within the box's bottom border.
NSAtTop 2 One of the constants for the title position. Title positioned within the box's top border.
NSBelowBottom 6 One of the constants for the title position. Title positioned below the box's bottom border.
NSBelowTop 3 One of the constants for the title position. Title positioned below the box's top border.
NSBoxCustom 4 One of the constants and data type identifies box types, which, in conjunction with a box's border type, define the appearance of the box. Specifies that the appearance of the box is determined entirely by the by box-configuration methods, without automatically applying Apple human interface guidelines.
NSBoxOldStyle 3 One of the constants and data type identifies box types, which, in conjunction with a box's border type, define the appearance of the box. Specifies that the box is a Mac OS X v10.2–style box.
NSBoxPrimary 0 One of the constants and data type identifies box types, which, in conjunction with a box's border type, define the appearance of the box. Specifies the primary box appearance. This is the default box type.
NSBoxSecondary 1 One of the constants and data type identifies box types, which, in conjunction with a box's border type, define the appearance of the box. Specifies the secondary box appearance.
NSBoxSeparator 2 One of the constants and data type identifies box types, which, in conjunction with a box's border type, define the appearance of the box. Specifies the secondary box appearance.
NSNoTitle 0 One of the constants for the title position. The box has no title.

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:

Blog Entries


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


NSBitmapImageRepMBS   -   NSBundleMBS


The biggest plugin in space...