title: OSX - How to tell if cursor is visible
body: <p>I understand that this question has already been answered:</p>
  
  <p><a href="https://stackoverflow.com/questions/5026660/detect-if-cursor-is-hidden-on-mac-os-x">Detect if cursor is hidden on Mac OS X</a></p>
  
  <p>But at this point, the function "CGCursorIsVisible" has been deprecated.  According to the help literature, there is no replacement.</p>
  
  <p><a href="https://developer.apple.com/library/mac/documentation/GraphicsImaging/Reference/Quartz_Services_Ref/DeprecationAppendix/AppendixADeprecatedAPI.html#//apple_ref/c/func/CGCursorIsVisible" rel="nofollow noreferrer">https://developer.apple.com/library/mac/documentation/GraphicsImaging/Reference/Quartz_Services_Ref/DeprecationAppendix/AppendixADeprecatedAPI.html#//apple_ref/c/func/CGCursorIsVisible</a></p>
  
  <p>When using the hide and show functions (CGDisplayHideCursor / CGDisplayShowCursor), no reference to the cursor's visibility is returned.  Although a show / hide counter is maintained by quartz, there's no way of accessing that value.</p>
  
  <p>So, how do we find out if the cursor is visible or not?</p>