Instance Property

image

The cursor’s image.

Declaration

macOS
@property(readonly, strong) NSImage *image;
Mac Catalyst
@property(readonly, strong) UIImage *image;

Discussion

The cursor image or nil if none exists. Note that an NSCursor object is immutable: you cannot change its image after it’s created. Instead, use initWithImage:hotSpot: to create a new cursor with the new settings.

See Also

Setting Cursor Attributes

hotSpot

The position of the cursor's hot spot.

+ hide

Makes the current cursor invisible.

+ unhide

Negates an earlier call to hide by showing the current cursor.

+ setHiddenUntilMouseMoves:

Sets whether the cursor is hidden until the mouse moves.