Hiding the Cursor in Carbon?

DoG
Moderator
Posts: 869
Joined: 2003.01
Post: #1
No, this is not what you think. I realise there is a function aptly named HideCursor(). But, as of 10.4, this function is deprecated. I spent half a day or so trying to find a replacement, to no avail. I assume it is to be found somewhere in the HIToolbox, but I couldn't find it. Any hints?
Quote this message in a reply
DoG
Moderator
Posts: 869
Joined: 2003.01
Post: #2
Of course, here I am, 10 minutes later and wiser. CGDisplayHideCursor() does the trick, though it hides the cursor only on one display. If you have a windowed app where you wanna hide the cursor, you need to make sure to hide it on the right display.
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Hiding game vars in C kendric 2 2,226 Nov 14, 2009 02:26 PM
Last Post: kendric
  Changing cursor in C++/SDL possible? Bonked 1 3,280 Dec 16, 2006 06:40 AM
Last Post: sealfin
  Cursor coordinates off during resolution change akb825 2 3,448 Aug 19, 2005 08:21 PM
Last Post: akb825