[quote=475354:@Sam Rowlands]system.cursors.hide
Is what I use to hide the cursor when displaying the custom color picker widget in HDRtist (http://machdr.com).
I use a window (which follows the cursor) to show an enlarged area and the current highlighted color.
When the selection is complete or the process is cancelled, I call system.cursors.show
to show it again.
Some notes.
- You can get a eye dropper control for FREE, by using select color and clicking on the eye dropper icon. It’s cumbersome, yet for handling the color selection, efficient.
- There’s issues with some custom eye dropper controls as some of the techniques for grabbing a values from the screen are blocked on Catalina. For my own solution, because it’s designed to allow the user to grab a sample from the image they’re editing, I convert the mouse location to a coordinate on the image preview and sample there, completely avoiding any screen shot mechanism.[/quote]
The problem with that is that it hides my custom magnifying glass cursor. I need a way to treat the cursor as a “layer” on the screen. It needs to always be shown, but be hidden from the screenshot, which is exactly what macOS does with NSCursors. I’m looking into writing my own declare with macoslib to set the cursor, but haven’t had much luck so far.