Swift:Change System Cursor

385 Views Asked by At

I created a simple macos app project in Swift. The app changes the NSCursor image with a custom image. This works fine but as soon as I click on a different app, e.g. Safari, macos restores the default system cursor.

Is there a way to disable this behavior? My goal is to keep the custom cursor for as long as my app is running and not only when it's focused.

Thanks!

0

There are 0 best solutions below