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?  So far I haven't seen anything
encouraging in the docs.

Depending on the context [[NSApp currentEvent]modifierFlags] may work for you.

Gerd

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to