FROM : Benjamin Stiglitz
DATE : Mon Jan 07 17:41:05 2008
> I implemented tracking rects and used mouseMove to change the cursor
> depending on modifier keys. In this case holding command key is
> zoom in while command and option is zoom out. It works OK, but
> pressing the command key does not get the correct curser until the
> mouse physically moves again. I tried to find an event for key
> press, but could not find one (command key or option key alone do
> not generate keyDown event). I didn't try cursor rects, but found no
> indication that cursor tracking would update correctly on command or
> option key presses.
Check out -[NSResponder flagsChanged:].
-Ben
DATE : Mon Jan 07 17:41:05 2008
> I implemented tracking rects and used mouseMove to change the cursor
> depending on modifier keys. In this case holding command key is
> zoom in while command and option is zoom out. It works OK, but
> pressing the command key does not get the correct curser until the
> mouse physically moves again. I tried to find an event for key
> press, but could not find one (command key or option key alone do
> not generate keyDown event). I didn't try cursor rects, but found no
> indication that cursor tracking would update correctly on command or
> option key presses.
Check out -[NSResponder flagsChanged:].
-Ben
| Related mails | Author | Date |
|---|---|---|
| John Nairn | Jan 5, 21:08 | |
| Ricky Sharp | Jan 5, 21:20 | |
| Benjamin Stiglitz | Jan 7, 17:41 | |
| John Nairn | Jan 7, 20:55 | |
| Allen Smith | Jan 8, 00:09 |






Cocoa mail archive

