jburns20
jburns20

Reputation: 3167

How to hide the mouse cursor?

How do you make the mouse cursor disappear in Objective-C? (just the visible mouse cursor, the mouse still needs to work)

Upvotes: 17

Views: 5447

Answers (2)

farid98
farid98

Reputation: 133

In Swift

NSCursor.hide()
NSCursor.unhide()

Upvotes: 8

jburns20
jburns20

Reputation: 3167

[NSCursor hide];

then to show the cursor again:

[NSCursor unhide];

Upvotes: 31

Related Questions