Re: Key presses in NSView

2012-10-04 Thread Gordon Apple
Ah! Exactly what I needed. Works. Thank you. It turns out that I had another borderless window where I had done just that. How quickly we forget. That screen overlay business is a real nasty. I found out real fast that you don¹t put a break point in its result handler unless you like cold reb

Re: Key presses in NSView

2012-10-04 Thread Jens Alfke
On Oct 4, 2012, at 3:17 PM, Gordon Apple wrote: > This is essentially the DragMouseBoxView (simple subclass of NSView) from > the AVScreenShack sample. It is set to acceptFirstResponder and > acceptFirstMouseClick. You may need to override -canBecomeKeyWindow in your window to return YES — if

Key presses in NSView

2012-10-04 Thread Gordon Apple
I have a screen overlay window/view (one for each available screen) which accepts mouse events (up, down, dragged). I want the user to be able to cancel and dismiss the overlay window(s) by hitting the ³any² key (old MS joke). Unfortunately, overriding keyDown/keyUp does not work. I just get a s