Re: modifier key query
Re: modifier key query
- Subject: Re: modifier key query
- From: Ken Thomases <email@hidden>
- Date: Fri, 26 Dec 2008 02:19:36 -0600
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 to get it?
You don't get it independently of NSEvent, you get a specific event
whenever the current set of modifiers changes, an event of type
NSFlagsChanged.
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".
Regards,
Ken
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden