register(_:forItemIdentifier:)
Registers a class for the scrubber to use when it creates new items.
Declaration
func register(_ itemViewClass: AnyClass?, forItemIdentifier itemIdentifier: NSUserInterfaceItemIdentifier)Parameters
- itemViewClass:
A class to use for creating items. The class must be descended from Nsscrubberitemview. Specify
nilto unregister a previously registered class. - itemIdentifier:
The string that identifies the type of item. You use this string later when requesting new item views. The string must be unique among the other registered item view classes of this scrubber. This parameter must not be an empty string or
nil.