Online Documentation - Statistics - FAQ - Plugin Parts (All, Dependencies) - Class hierarchy
New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1
The list of the topics, classes, interfaces, controls, modules, global methods by category, global methods by name, screenshots, licenses and examples.
Platforms to show: All Mac Windows Linux Cross-Platform
Super class: NSViewMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Cocoa Collection View | MBS MacControls Plugin | 21.0 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
The simplest type of collection view displays its items in a grid, but you can define layouts to arrange items however you like. For example, you might create a layout where items are arranged in a circle. You can also change layouts dynamically at runtime whenever you need to present items differently.
See also:
https://developer.apple.com/documentation/appkit/views_and_controls/collection_view
https://developer.apple.com/documentation/appkit/nscollectionview
Subclass of the NSViewMBS class.
Constant | Value | Description |
---|---|---|
NSCollectionViewScrollPositionBottom | 4 | Scroll so that the bottom edge of the bounding box is adjacent to the bottom of the collection view’s bounds. more |
NSCollectionViewScrollPositionCenteredHorizontally | 16 | Scroll so that the selected items’ bounding box is centered horizontally in the collection view’s bounds. more |
NSCollectionViewScrollPositionCenteredVertically | 2 | Scroll so that the bounding box of the selected items is centered vertically in the collection view’s bounds. more |
NSCollectionViewScrollPositionLeadingEdge | 64 | Scroll so that the leading edge of the selected items’ bounding box is adjacent to the leading edge of the collection view’s bounds. more |
NSCollectionViewScrollPositionLeft | 8 | Scroll so that the left edge of the selected items’ bounding box is adjacent to the left edge of the collection view’s bounds. more |
NSCollectionViewScrollPositionNearestHorizontalEdge | 512 | Scroll so that the bounding box is adjacent to the nearest edge (top or bottom) of the collection view. more |
NSCollectionViewScrollPositionNearestVerticalEdge | 256 | Scroll so that the bounding box is adjacent to the nearest edge (leading or trailing) of the collection view. more |
NSCollectionViewScrollPositionNone | 0 |
Do not scroll. |
NSCollectionViewScrollPositionRight | 32 | Scroll so that the right edge of the selected items’ bounding box is adjacent to the right edge of the collection view’s bounds. more |
NSCollectionViewScrollPositionTop | 1 | Scroll so that the top edge of the selected items’ bounding box is adjacent to the top edge of the collection view’s bounds. more |
NSCollectionViewScrollPositionTrailingEdge | 128 | Scroll so that the trailing edge of the selected items’ bounding box is adjacent to the trailing edge of the collection view’s bounds. more |
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. |
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. |
This class has no sub classes.
The items on this page are in the following plugins: MBS MacBase Plugin, MBS MacControls Plugin.
NSCollectionViewLayoutMBS - NSCollectionViewSectionHeaderViewMBS