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: NSCollectionViewLayoutMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Cocoa Collection View | MBS MacControls Plugin | 21.0 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
In a flow layout, the first item is positioned in the top-left corner and other items are laid out either horizontally or vertically based on the scroll direction, which is configurable. Items may be the same size or different sizes, and you may use the flow layout object or the collection view’s delegate object to specify the size of items and the spacing around them. The flow layout also lets you specify custom header and footer views for each section.
You can use an NSCollectionViewFlowLayoutMBS object as-is or subclass it to modify more aspects of the layout behavior. There are several ways to customize the basic layout behavior that do not require subclassing. For example, you can use a delegate object to change the size and spacing of items dynamically. Subclassing is appropriate for more advanced layout changes, such as adding supplementary views or decoration views, supporting custom layout attributes, or customizing the layout animations when inserting or deleting items.
see also
https://developer.apple.com/documentation/appkit/nscollectionviewflowlayout
Subclass of the NSCollectionViewLayoutMBS class.
Constant | Value | Description |
---|---|---|
ScrollDirectionHorizontal | 1 |
The layout scrolls content horizontally. |
ScrollDirectionVertical | 0 |
The layout scrolls content vertically. |
This class has no sub classes.
The items on this page are in the following plugins: MBS MacControls Plugin.
NSCollectionViewFlowLayoutInvalidationContextMBS - NSCollectionViewGridLayoutMBS