Making an invisible Cocoa window catch mouse clicks

2008-11-18 Thread Nicholas Francis
Hi guys. I'm working on the Unity game tool. I'm trying to make my own eye dropper (user clicks eye dropper icon, clicks somewhere on screen to sample the color) but are running into an issue catching the second mouse click. I'm creating a borderless NSWindow (that I move around under the

Re: Making an invisible Cocoa window catch mouse clicks

2008-11-18 Thread Quincey Morris
On Nov 18, 2008, at 17:53, Nicholas Francis wrote: I'm creating a borderless NSWindow (that I move around under the mouse) and call setAlphaValue: 0 on it to make it transparent. Sadly this makes the window ignore mouse events, so the click activates whatever app is under the cursor. Is