register(_:forItemIdentifier:)
Registers a nib file for the scrubber to use when it creates new items in the scrubber.
Declaration
func register(_ nib: NSNib?, forItemIdentifier itemIdentifier: NSUserInterfaceItemIdentifier)Parameters
- nib:
The nib object containing the item object. The nib file must contain exactly one top-level Nsscrubberitemview object. You can use a custom subclass when configuring the object in the nib file. Specify
nilto unregister a previously registered file. - itemIdentifier:
The string that identifies the type of items. You use this string later when requesting new items. 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.