Instance Method

makeItemWithIdentifier:owner:

Creates or returns a reusable item object with the specified identifier.

Declaration

- (__kindof NSScrubberItemView *)makeItemWithIdentifier:(NSUserInterfaceItemIdentifier)itemIdentifier owner:(id)owner;

Parameters

itemIdentifier

The string that identifies the type of item you want. This is the identifier you specified when registering the item view. The parameter must not be nil.

owner

The owner of this item. If the scrubber item is loaded from a nib then this object is set as the nib's File's Owner object. Set this parameter to nil for scrubber items loaded from classes.

Return Value

A valid NSScrubberItemView object.

See Also

Creating Scrubber Items

- registerClass:forItemIdentifier:

Registers a class for the scrubber to use when it creates new items.

- registerNib:forItemIdentifier:

Registers a nib file for the scrubber to use when it creates new items in the scrubber.