Contents

image(forSegment:)

Returns the image associated with the specified segment.

Declaration

func image(forSegment segment: Int) -> NSImage?

Parameters

  • segment:

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

See Also

Configuring Individual Segments