Platforms to show: All Mac Windows Linux Cross-Platform

NSCollectionViewLayoutAttributesMBS 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
An object that contains layout-related attributes for an element in a collection view.

During the layout, the layout object creates instances of NSCollectionViewLayoutAttributesMBS for each element displayed in the collection view. The layout attributes describe the position of an element and other information such as its alpha and position on the z axis. The collection view later applies the layout attributes to the onscreen elements.

The only time you interact with layout attribute objects is when you implement a custom layout, and the interactions are straightforward. When asked for layout attributes for a specific element, your layout object uses the methods of this class to create an appropriate instance of the class based on the type of the requested element. It then configures the properties of the object and returns it to the requester.

Element Categories

Constant Value Description
ElementCategoryDecorationView 2 The element is a decoration view. Decoration views represent visual adornments that do not contain any data of their own.
ElementCategoryInterItemGap 3 The element is an inter-item gap. An inter-item gap element is a custom visual indicator that is displayed between items when dropping items into the collection view.
ElementCategoryItem 0 The element is an item. Items represent the main content of your collection view.
ElementCategorySupplementaryView 1 The element is a supplementary view. Use supplementary views for single views that contain some data but are associated with an entire section. For example, use them to specify header or footer views for a section.

This class has no sub classes.

Some methods using this class:

Some events using this class:


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


NSCollectionViewItemMBS   -   NSCollectionViewLayoutInvalidationContextMBS


The biggest plugin in space...