Globally hide mouse cursor in Cocoa/Carbon?

后端 未结 4 1496
暖寄归人
暖寄归人 2021-02-08 10:27

Is there a way to globally hide the mouse cursor for all apps in Cocoa (or Carbon)? Or at least replace it with something else?

EDIT: Thanks for the input guys, but turn

4条回答
  •  误落风尘
    2021-02-08 10:48

    Check out: http://developer.apple.com/legacy/mac/library/samplecode/CarbonCocoa_PictureCursor/listing2.html It's an old sample, but probably still works.

    I expect that you're going to be limited to your application window, however. If you want to hide it for everyone you will probably have to make your window cover the screen.

    Fun fact: The old toolbox function was simply "HideCursor()".

提交回复
热议问题