<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSCursor/init(image:hotSpot:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSCursor(im)initWithImage:hotSpot:"
  },
  "title" : "init(image:hotSpot:)"
}
-->

# init(image:hotSpot:)

Initializes a cursor with the given image and hot spot.

```
init(image newImage: UIImage, 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

[`image`](/documentation/AppKit/NSCursor/image)

The cursor’s image.

  [Cursor Management](https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/CursorMgmt/CursorMgmt.html#//apple_ref/doc/uid/10000066i)

[`hotSpot`](/documentation/AppKit/NSCursor/hotSpot)

The position of the click location within the cursor.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)