Instance Method

initWithImage:foregroundColorHint:backgroundColorHint:hotSpot:

Initializes the cursor with the specified image and hot spot.

Declaration

- (instancetype)initWithImage:(NSImage *)newImage foregroundColorHint:(NSColor *)fg backgroundColorHint:(NSColor *)bg hotSpot:(NSPoint)hotSpot;

Parameters

newImage

The image to assign to the cursor.

fg

The foreground color. This is currently ignored.

bg

The background color. This is currently ignored.

hotSpot

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

Return Value

The initialized cursor object.

See Also

Initializing a New Cursor

- initWithImage:hotSpot:

Initializes a cursor with the given image and hot spot.