Platforms to show: All Mac Windows Linux Cross-Platform
NSCollectionViewLayoutMBS class
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 job of a layout object is to perform the calculations needed to determine the placement and appearance of items, supplementary views, and other content in the collection view. The layout object does not apply the layout attributes it generates to the views in your interface. Instead, it passes those layout attributes to the collection view, which then creates the needed views and applies the layout attributes to them.
see also
https://developer.apple.com/documentation/appkit/nscollectionviewlayout
- property collectionView as NSCollectionViewMBS
- 3 methods
- method Constructor
- method invalidateLayout
- method invalidateLayoutWithContext(context as NSCollectionViewLayoutInvalidationContextMBS)
- 2 shared methods
- shared method NewInvalidationContext as NSCollectionViewLayoutInvalidationContextMBS
- shared method NewLayoutAttributes as NSCollectionViewLayoutAttributesMBS
Sub classes:
- class NSCollectionViewFlowLayoutMBS
- class NSCollectionViewGridLayoutMBS
- class NSCollectionViewTransitionLayoutMBS
Some methods using this class:
- NSCollectionViewTransitionLayoutMBS.Constructor(currentLayout as NSCollectionViewLayoutMBS, nextLayout as NSCollectionViewLayoutMBS)
Some properties using for this class:
- NSCollectionViewMBS.collectionViewLayout as NSCollectionViewLayoutMBS
- NSCollectionViewTransitionLayoutMBS.currentLayout as NSCollectionViewLayoutMBS
- NSCollectionViewTransitionLayoutMBS.nextLayout as NSCollectionViewLayoutMBS
Some events using this class:
- DesktopNSCollectionViewControlMBS.ItemDidTransition(item as NSCollectionViewItemMBS, oldLayout as NSCollectionViewLayoutMBS, newLayout as NSCollectionViewLayoutMBS)
- DesktopNSCollectionViewControlMBS.referenceSizeForFooterInSection(layout as NSCollectionViewLayoutMBS, section as Integer) as NSSizeMBS
- DesktopNSCollectionViewControlMBS.referenceSizeForHeaderInSection(layout as NSCollectionViewLayoutMBS, section as Integer) as NSSizeMBS
- DesktopNSCollectionViewControlMBS.transitionLayout(fromLayout as NSCollectionViewLayoutMBS, toLayout as NSCollectionViewLayoutMBS) as NSCollectionViewTransitionLayoutMBS
- NSCollectionViewControlMBS.insetForSectionAtIndex(layout as NSCollectionViewLayoutMBS, section as Integer) as NSEdgeInsetsMBS
- NSCollectionViewControlMBS.minimumInteritemSpacingForSectionAtIndex(layout as NSCollectionViewLayoutMBS, section as Integer) as double
- NSCollectionViewControlMBS.minimumLineSpacingForSectionAtIndex(layout as NSCollectionViewLayoutMBS, section as Integer) as double
- NSCollectionViewControlMBS.referenceSizeForHeaderInSection(layout as NSCollectionViewLayoutMBS, section as Integer) as NSSizeMBS
- NSCollectionViewControlMBS.sizeForItemAtIndexPath(layout as NSCollectionViewLayoutMBS, indexPath as NSIndexPathMBS) as NSSizeMBS
- NSCollectionViewControlMBS.transitionLayout(fromLayout as NSCollectionViewLayoutMBS, toLayout as NSCollectionViewLayoutMBS) as NSCollectionViewTransitionLayoutMBS
Blog Entries
The items on this page are in the following plugins: MBS MacControls Plugin.
NSCollectionViewLayoutInvalidationContextMBS - NSCollectionViewMBS