Returns the image associated with the specified segment.
SDK
- macOS 10.3+
Framework
- App
Kit
Declaration
Parameters
segment
The index of the segment whose image you want to get. This method raises an exception (
range
) if the index is out of bounds.Exception
Return Value
The image associated with the segment; otherwise, nil
.