Contents

init(image:hotSpot:)

Initializes a cursor with the given image and hot spot.

Declaration

init(image newImage: UIImage, hotSpot point: NSPoint)
init(image newImage: NSImage, hotSpot point: NSPoint)

Parameters

  • newImage:

    The image to assign to the cursor.

  • point:

    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

Related Documentation

Initializing a new cursor