When debugging in xcode an app with a hidden cursor, how can I get it to reappear

When debugging a game that is full screen (on one of my two monitors), when it crashes and the debugger (on the other monitor, not captured) displays the location of the crash, the cursor is still hidden. Is there a way to make the cursor appear again? I can click blindly and it works, but it's not scary for sure.

+1


source to share


2 answers


Sorry I can't work with this, but can I ask you to report this as an Apple bug at http://bugreport.apple.com/ So maybe we'll all benefit from this in a few weeks or months. when the new Xcode comes out.

By the way, how do you hide your cursor? I thought each process has its own cursor. So, as soon as you move the mouse to another application, it should set the cursor again.



Maybe you could use another way to hide the cursor in your game? For example, instead of turning it off, keep it visible, but give it a blank image.

0


source


How did you hide the cursor? If you used CGDisplayHideCursor you should be able to call CGDisplayShowCursor (x) where x is the main display id?

For example, in gdb enter:

call (unsigned long) CGMainDisplayID()

      

an id will be returned.



Then enter:

call (long) CGDisplayShowCursor(id)

      

If you've used Cocoa functions, you can still call the corresponding Cocoa functions in the gdb console to display the cursor.

0


source







All Articles