Instance Method


Creates or returns a reusable supplementary view of the specified type.


func makeSupplementaryView(ofKind elementKind: NSCollectionView.SupplementaryElementKind, withIdentifier identifier: NSUserInterfaceItemIdentifier, for indexPath: IndexPath) -> NSView



The kind of supplementary view to create. This value is defined by the layout object. This parameter must not be an empty string or nil.


The reuse identifier for the specified item. This is the identifier you specified when registering the supplementary view. This parameter must not be nil.


The index path specifying the location of the supplementary view. The data source object receives this information in its collectionView(_:viewForSupplementaryElementOfKind:at:) method and you should just pass it along.

Return Value

A view that adopts the NSCollectionViewElement protocol.


This method looks for a recycled supplementary view of the specified type and returns it if one exists. If one does not exist, it creates it using one of the following techniques:

See Also