Instance Method

imageForSegment:

Returns the image associated with the specified segment.

Declaration

- (NSImage *)imageForSegment:(NSInteger)segment;

Parameters

segment

The index of the segment whose image you want to get. This method raises an exception (NSRangeException) if the index is out of bounds.

Return Value

The image associated with the segment; otherwise, nil.

See Also

Configuring a Segment Image

- setImage:forSegment:

Sets the image for the specified segment.

- setImageScaling:forSegment:

Sets the scaling mode used to display the specified segment’s image.

- imageScalingForSegment:

Returns the scaling mode used to display the specified segment’s image.