Missing Keyboard Response at Xcode Breakpoint (Mac)

I just came across a really bizarre script and can't find any information about this elsewhere. When Xcode breaks into my breakpoints, the entire keyboard for the whole system does not respond. I can switch to another application, but no keystrokes are recorded. Xcode itself does not respond to keyboard input.

Has anyone else seen this?

I am running 10.10.1 and Xcode 6.1.

+4
source share
1 answer

Based on the above comments, this issue seems to be related to Powerbox details. To explain further: my application is isolated and calls NSOpenPanel. When breaking (Xcode breakpoint) in the NSOpenPanel termination block, I experience keyboard losses throughout the system.

Keyboard entry behaves normally at breakpoints outside of the NSOpenPanel call. Having worked beyond this area of ​​code, I noticed that my subsequent operations (set in the background from the final side) often end before the NSOpenPanel is completely torn (disappears from the screen). My assumption is that until the NSOpenPanel is removed from the screen (and possibly later), Powerbox will not release the keyboard control.

, Powerbox , .

, . , ( ) .

.

UPDATE NSOpenPanel, dispatch_after. 1 . , , , .

0

All Articles