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

# init(image:foregroundColorHint:backgroundColorHint:hotSpot:)

Initializes the cursor with the specified image and hot spot.

```
convenience init(image newImage: NSImage, foregroundColorHint fg: NSColor?, backgroundColorHint bg: NSColor?, hotSpot: NSPoint)
```

## 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.

---

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)