Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSCollectionViewLayoutInvalidationContextMBS class.

NSCollectionViewLayoutInvalidationContextMBS.contentOffsetAdjustment as NSPointMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Collection View MBS MacControls Plugin 21.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The delta value to add to the collection view’s content offset.

The content offset adjustment shifts the position of content inside the collection view by the specified amount. You use this value to make tweaks based on how you want to present your content. For example, you might use it to ensure that the first line of items is always lined up at the same position in the collection view’s visible rectangle. When making adjustments, you can specify both positive and negative values.
The default value of this property is zero/zero.
(Read and Write property)

NSCollectionViewLayoutInvalidationContextMBS.contentSizeAdjustment as NSSizeMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Collection View MBS MacControls Plugin 21.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The delta value to add to the collection view’s content size.

Use this property to update the size of the collection view’s content area, as computed by the associated layout object. The default value of this property is zero/zero. Changing the value causes the collection view to add the specified height and width values to its content size. Thus, positive values grow the content area and negative values shrink it. You might add space around the content area to provide a visual buffer for your collection view content.
(Read and Write property)

NSCollectionViewLayoutInvalidationContextMBS.invalidateDataSourceCounts as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Collection View MBS MacControls Plugin 21.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
A Boolean that indicates whether the layout object should ask for new section and item counts.

The collection view sets this property in response to specific layout invalidation scenarios. For example, the collection view sets the property to true when you insert or delete items or call the collection view’s reloadData method.
When this property is set to true, the layout object must query the data source for the new number of sections and items. IT should also update its layout based on the updated number of sections and items.
(Read only property)

NSCollectionViewLayoutInvalidationContextMBS.invalidatedDecorationIndexPaths as Dictionary

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Collection View MBS MacControls Plugin 21.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
A dictionary containing the decoration views whose layout attributes are invalid.

The keys in this dictionary are the element kind strings of the decoration views. The value for each key is an array object containing one or more NSIndexPath objects, each of which identifies the section containing the decoration view.
(Read only property)

NSCollectionViewLayoutInvalidationContextMBS.invalidatedSupplementaryIndexPaths as Dictionary

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Collection View MBS MacControls Plugin 21.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
A dictionary containing the supplementary views whose layout attributes are invalid.

The keys in this dictionary are the element kind strings of the supplementary views. The value for each key is an array object containing one or more NSIndexPath objects, each of which identifies the section containing the supplementary view.
(Read only property)

NSCollectionViewLayoutInvalidationContextMBS.invalidateEverything as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Collection View MBS MacControls Plugin 21.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
A Boolean that indicates whether all layout data should be marked as invalid.

The collection view sets this property in response to specific layout invalidation scenarios. For example, the collection view sets the property to true when you change the current layout object, change the data source of the collection view, or call the reloadData method and subsequently request a layout invalidation context.
When this property is set to true, the layout object must throw away all previous layout information and recompute it.
(Read only property)

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


The biggest plugin in space...