# NSCollectionViewLayout documentation

Generated at 2026-06-27 19:09:52 +0000
Software documentation for the NSCollectionViewLayout class
AppKit/NSCollectionViewLayout.h
NSCoding
Description forthcoming.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
collectionView
Description forthcoming.
invalidateLayout
Description forthcoming.
invalidateLayoutWithContext:
context
Description forthcoming.
registerClass:
viewClass
forDecorationViewOfKind:
elementKind
Description forthcoming.
registerNib:
nib
forDecorationViewOfKind:
elementKind
Description forthcoming.
setCollectionView:
cv
Description forthcoming.
Software documentation for the NSCollectionViewLayoutAttributes class
AppKit/NSCollectionViewLayout.h
NSCopying
Description forthcoming.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
layoutAttributesForDecorationViewOfKind:
decorationViewKind
withIndexPath:
indexPath
Description forthcoming.
layoutAttributesForInterItemGapBeforeIndexPath:
indexPath
Description forthcoming.
layoutAttributesForItemWithIndexPath:
indexPath
Description forthcoming.
layoutAttributesForSupplementaryViewOfKind:
elementKind
withIndexPath:
indexPath
Description forthcoming.
alpha
Description forthcoming.
frame
Description forthcoming.
indexPath
Description forthcoming.
isHidden
Description forthcoming.
representedElementCategory
Description forthcoming.
representedElementKind
Description forthcoming.
setAlpha:
alpha
Description forthcoming.
setFrame:
frame
Description forthcoming.
setHidden:
hidden
Description forthcoming.
setIndexPath:
indexPath
Description forthcoming.
setSize:
size
Description forthcoming.
setZIndex:
zIndex
Description forthcoming.
size
Description forthcoming.
zIndex
Description forthcoming.
Software documentation for the NSCollectionViewLayoutInvalidationContext class
AppKit/NSCollectionViewLayout.h
Description forthcoming.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
contentOffsetAdjustment
Description forthcoming.
contentSizeAdjustment
Description forthcoming.
invalidateDataSourceCounts
Description forthcoming.
invalidateDecorationElementsOfKind:
elementKind
atIndexPaths:
indexPaths
Description forthcoming.
invalidateEverything
Description forthcoming.
invalidateItemsAtIndexPaths:
indexPaths
Description forthcoming.
invalidateSupplementaryElementsOfKind:
elementKind
atIndexPaths:
indexPaths
Description forthcoming.
invalidatedDecorationIndexPaths
Description forthcoming.
invalidatedItemIndexPaths
Description forthcoming.
invalidatedSupplementaryIndexPaths
Description forthcoming.
setContentOffsetAdjustment:
point
Description forthcoming.
setContentSizeAdjustment:
size
Description forthcoming.
Software documentation for the NSCollectionViewUpdateItem class
AppKit/NSCollectionViewLayout.h
Description forthcoming.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
indexPathAfterUpdate
Description forthcoming.
indexPathBeforeUpdate
Description forthcoming.
updateAction
Description forthcoming.
Software documentation for the NSCollectionViewLayout(NSSubclassingHooks) category
AppKit/NSCollectionViewLayout.h
Description forthcoming.
collectionViewContentSize
Description forthcoming.
invalidationContextForBoundsChange:
newBounds
Description forthcoming.
invalidationContextForPreferredLayoutAttributes:
preferredAttributes
withOriginalAttributes:
originalAttributes
Description forthcoming.
layoutAttributesForDecorationViewOfKind:
elementKind
atIndexPath:
indexPath
Description forthcoming.
layoutAttributesForDropTargetAtPoint:
pointInCollectionView
Description forthcoming.
layoutAttributesForElementsInRect:
rect
Description forthcoming.
layoutAttributesForInterItemGapBeforeIndexPath:
indexPath
Description forthcoming.
layoutAttributesForItemAtIndexPath:
indexPath
Description forthcoming.
layoutAttributesForSupplementaryViewOfKind:
elementKind
atIndexPath:
indexPath
Description forthcoming.
prepareLayout
Description forthcoming.
shouldInvalidateLayoutForBoundsChange:
newBounds
Description forthcoming.
shouldInvalidateLayoutForPreferredLayoutAttributes:
preferredAttributes
withOriginalAttributes:
originalAttributes
Description forthcoming.
targetContentOffsetForProposedContentOffset:
proposedContentOffset
Description forthcoming.
targetContentOffsetForProposedContentOffset:
proposedContentOffset
withScrollingVelocity:
velocity
Description forthcoming.
Software documentation for the NSCollectionViewLayout(NSUpdateSupportHooks) category
AppKit/NSCollectionViewLayout.h
Description forthcoming.
finalLayoutAttributesForDisappearingDecorationElementOfKind:
elementKind
atIndexPath:
decorationIndexPath
Description forthcoming.
finalLayoutAttributesForDisappearingItemAtIndexPath:
itemIndexPath
Description forthcoming.
finalLayoutAttributesForDisappearingSupplementaryElementOfKind:
elementKind
atIndexPath:
elementIndexPath
Description forthcoming.
finalizeAnimatedBoundsChange
Description forthcoming.
finalizeCollectionViewUpdates
Description forthcoming.
finalizeLayoutTransition
Description forthcoming.
indexPathsToDeleteForDecorationViewOfKind:
elementKind
Description forthcoming.
indexPathsToDeleteForSupplementaryViewOfKind:
elementKind
Description forthcoming.
indexPathsToInsertForDecorationViewOfKind:
elementKind
Description forthcoming.
indexPathsToInsertForSupplementaryViewOfKind:
elementKind
Description forthcoming.
initialLayoutAttributesForAppearingDecorationElementOfKind:
elementKind
atIndexPath:
decorationIndexPath
Description forthcoming.
initialLayoutAttributesForAppearingItemAtIndexPath:
itemIndexPath
Description forthcoming.
initialLayoutAttributesForAppearingSupplementaryElementOfKind:
elementKind
atIndexPath:
elementIndexPath
Description forthcoming.
prepareForAnimatedBoundsChange:
oldBounds
Description forthcoming.
prepareForCollectionViewUpdates:
updateItems
Description forthcoming.
prepareForTransitionFromLayout:
oldLayout
Description forthcoming.
prepareForTransitionToLayout:
newLayout
Description forthcoming.