Registers a nib file to use when creating supplementary views in the collection view.
- macOS 10.11+
The kind of the supplementary view. Layout objects define the kinds of supplementary views they support and are responsible for providing appropriate strings that you can pass for this parameter. This parameter must not be an empty string or
The string that identifies the type of supplementary view. You use this string later when requesting new views and it must be unique among the other registered item and view classes of this collection view. This parameter must not be an empty string or
Use this method to register nib files containing prototype supplementary views in your collection view. When you request a view using the
make method, the collection view recycles an existing view with the same
kind values or creates a new one by loading the contents of your nib file.
The layout object is responsible for defining the kind of supplementary views it supports and how those views are used. For example, the flow layout (
NSCollection class) lets you specify supplementary views to act as headers and footers for each section.
Typically, you register your supplementary views when initializing your collection view interface. Although you can register new views at any time, you must not call the
make method until after you register the corresponding view.