Sets the image for the specified segment.
- macOS 10.3+
The image to apply to the segment or
nilif you want to clear the existing image. Images are not scaled to fit inside a segment. If the image is larger than the available space, it is clipped.
The index of the segment whose image you want to set. This method raises an exception (
range) if the index is out of bounds.