Instance Method

initWithImage:hotSpot:

Initializes a cursor with the given image and hot spot.

Declaration

macOS
- (instancetype)initWithImage:(NSImage *)newImage hotSpot:(NSPoint)point;
Mac Catalyst
- (instancetype)initWithImage:(UIImage *)newImage hotSpot:(NSPoint)point;

Parameters

newImage

The image to assign to the cursor.

aPoint

The point to set as the cursor's hot spot.

Return Value

An initialized cursor object.

Discussion

This method is the designated initializer for the class.

See Also

Initializing a New Cursor

- initWithImage:foregroundColorHint:backgroundColorHint:hotSpot:

Initializes the cursor with the specified image and hot spot.

Deprecated