On Jan 4, 2014, at 3:58 PM, Alex Hall wrote: > //store a keystroke > NSUInteger key=[event keyCode]+[event modifierFlags];
This isn't safe. The documented device-independent modifier flags are all in the high 16 bits of a 32-bit value, but there are other flags in the other bits. At the very least, you would need to AND the modifier flags against NSDeviceIndependentModifierFlagsMask to clear the other bits. Regards, Ken _______________________________________________ Cocoa-dev mailing list ([email protected]) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
