Enumeration

NSCellImagePosition

Constants for specifying the position of a button’s image relative to its title.

Declaration

typedef enum NSCellImagePosition : NSUInteger {
    ...
} NSCellImagePosition;

Overview

These constants are used by the imagePosition property of NSButton and NSButtonCell.

Topics

Constants

NSNoImage

The cell doesn’t display an image.

NSImageOnly

The cell displays an image, but not a title.

NSImageLeft

The image is to the left of the title.

NSImageRight

The image is to the right of the title.

NSImageBelow

The image is below the title.

NSImageAbove

The image is above the title.

NSImageOverlaps

The image overlaps the title.

See Also

Configuring Button Images

image

The image that appears on the button when it’s in an off state, or nil if there is no such image.

alternateImage

An alternate image that appears on the button when the button is in an on state.

imagePosition

The position of the button’s image relative to its title.

bordered

A Boolean value that determines whether the button has a border.

transparent

A Boolean value that indicates whether the button is transparent.

bezelStyle

The appearance of the button’s border.

bezelColor

The color of the button's bezel, in appearances that support it.

showsBorderOnlyWhileMouseInside

A Boolean value that determines whether the button displays its border only when the pointer is over it.

imageHugsTitle

A Boolean value that determines how the button’s image and title are positioned together within the button bezel.

imageScaling

The scaling mode applied to make the cell’s image fit the frame of the image view.