Platforms to show: All Mac Windows Linux Cross-Platform
NSCollectionViewFlowLayoutInvalidationContextMBS class
Super class: NSCollectionViewLayoutInvalidationContextMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Cocoa Collection View | MBS MacControls Plugin | 21.0 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Layout objects use invalidation contexts to optimize the layout process and avoid unnecessary work. You use this class to specify whether the NSCollectionViewFlowLayout object should fetch new size information from its delegate. You can also prevent the flow layout object from updating its layout information altogether.
When you want to invalidate your flow layout object, call the NewInvalidationContext method of your layout object and instantiate the resulting class. (The implementation of that method in NSCollectionViewFlowLayout returns this class.) After instantiating this class, set the properties to appropriate values and pass the object to the invalidateLayoutWithContext method of the layout object.
Subclass of the NSCollectionViewLayoutInvalidationContextMBS class.
- 2 properties
- property invalidateFlowLayoutAttributes as Boolean
- property invalidateFlowLayoutDelegateMetrics as Boolean
- method Constructor
Super class NSCollectionViewLayoutInvalidationContextMBS
- 6 properties
- property contentOffsetAdjustment as NSPointMBS
- property contentSizeAdjustment as NSSizeMBS
- property invalidateDataSourceCounts as Boolean
- property invalidatedDecorationIndexPaths as Dictionary
- property invalidatedSupplementaryIndexPaths as Dictionary
- property invalidateEverything as Boolean
- 5 methods
- method Constructor
- method invalidateDecorationElementsOfKind(elementKind as String, indexPaths() as NSIndexPathMBS)
- method invalidatedItemIndexPaths as NSIndexPathMBS()
- method invalidateItemsAtIndexPaths(indexPaths() as NSIndexPathMBS)
- method invalidateSupplementaryElementsOfKind(elementKind as String, indexPaths() as NSIndexPathMBS)
This class has no sub classes.
The items on this page are in the following plugins: MBS MacControls Plugin.
NSCoderMBS - NSCollectionViewFlowLayoutMBS