---
title: hide()
framework: appkit
role: symbol
role_heading: Type Method
path: appkit/nscursor/hide()
---

# hide()

Makes the current cursor invisible.

## Declaration

```swift
class func hide()
```

## Discussion

Discussion If another cursor becomes current, that cursor will be invisible, too. It will remain invisible until you invoke the unhide() method. Each invocation of hide must be balanced by an invocation of unhide() in order for the cursor to be displayed. The hide() method overrides setHiddenUntilMouseMoves(_:).

## See Also

### Setting cursor attributes

- [image](appkit/nscursor/image.md)
- [hotSpot](appkit/nscursor/hotspot.md)
- [unhide()](appkit/nscursor/unhide().md)
- [setHiddenUntilMouseMoves(_:)](appkit/nscursor/sethiddenuntilmousemoves(_:).md)
