Instance Method

scrollItemAtIndex:toAlignment:

Scrolls an item to a specified alignment within the scrubber.

Declaration

- (void)scrollItemAtIndex:(NSInteger)index toAlignment:(NSScrubberAlignment)alignment;

Parameters

index

The index of the item to be scrolled. Indexes range between 0 and n-1, where n is the number of items displayed in the scrubber.

alignment

The position the item should be scrolled to. For possible values, see NSScrubberAlignment. If NSScrubberAlignmentNone, the scrubber scrolls the minimum distance required to make the item visible.

Discussion

To animate the scroll, call this method on the animator proxy. See NSAnimatablePropertyContainer for details.