Re: modifier key query

2008-12-31 Thread Sean McBride
Ricky Sharp (rsh...@mac.com) on 2008-12-31 1:21 PM said: >>> Is there a way to know if a modifier key (shift, ctrl, option, cmd, >>> etc) is pressed? Obviously, there's this: >>> NSUInteger modifierFlags = [theEvent modifierFlags]; >>> >>> but what if you need to know this information independent

Re: modifier key query

2008-12-31 Thread Ricky Sharp
On Dec 31, 2008, at 11:36 AM, Sean McBride wrote: Wesley Smith (wesley.h...@gmail.com) on 2008-12-26 3:04 AM said: Is there a way to know if a modifier key (shift, ctrl, option, cmd, etc) is pressed? Obviously, there's this: NSUInteger modifierFlags = [theEvent modifierFlags]; but what if y

Re: modifier key query

2008-12-31 Thread Sean McBride
Wesley Smith (wesley.h...@gmail.com) on 2008-12-26 3:04 AM said: >Is there a way to know if a modifier key (shift, ctrl, option, cmd, >etc) is pressed? Obviously, there's this: >NSUInteger modifierFlags = [theEvent modifierFlags]; > >but what if you need to know this information independent of an

Re: modifier key query

2008-12-26 Thread Wesley Smith
Thanks, works like a charm. wes On Fri, Dec 26, 2008 at 5:10 AM, Ron Fleckner wrote: > > On 26/12/2008, at 7:23 PM, Wesley Smith wrote: >> >> Mainly because I'd like to be able to control various animating >> behaviors via key modifiers but if the user isn't generating new mouse >> or key events,

Re: modifier key query

2008-12-26 Thread Gerd Knops
On Dec 26, 2008, at 2:04 AM, Wesley Smith wrote: Is there a way to know if a modifier key (shift, ctrl, option, cmd, etc) is pressed? Obviously, there's this: NSUInteger modifierFlags = [theEvent modifierFlags]; but what if you need to know this information independent of an NSEvent? Anyway

Re: modifier key query

2008-12-26 Thread Ron Fleckner
On 26/12/2008, at 7:23 PM, Wesley Smith wrote: Mainly because I'd like to be able to control various animating behaviors via key modifiers but if the user isn't generating new mouse or key events, you can't tell if a modifier key has been pressed/released, which can make for awkward interface e

Re: modifier key query

2008-12-26 Thread Wesley Smith
> > Given that you are informed with an event each time the modifiers change, > I'm not sure why you want to "know this information independent of an > NSEvent". Mainly because I'd like to be able to control various animating behaviors via key modifiers but if the user isn't generating new mouse

Re: modifier key query

2008-12-26 Thread Ken Thomases
On Dec 26, 2008, at 2:04 AM, Wesley Smith wrote: Is there a way to know if a modifier key (shift, ctrl, option, cmd, etc) is pressed? Obviously, there's this: NSUInteger modifierFlags = [theEvent modifierFlags]; but what if you need to know this information independent of an NSEvent? Anyway t

modifier key query

2008-12-26 Thread Wesley Smith
Is there a way to know if a modifier key (shift, ctrl, option, cmd, etc) is pressed? Obviously, there's this: NSUInteger modifierFlags = [theEvent modifierFlags]; but what if you need to know this information independent of an NSEvent? Anyway to get it? So far I haven't seen anything encouragin