On Fri, Jan 16, 2009 at 1:15 PM, Dave DeLong <davedel...@me.com> wrote: > My understanding is that the modifierFlag "256" means that no other > modifiers are pressed. I haven't found it in the docs anywhere, but I > believe that you can count on "256" meaning "no flags". Every machine I've > tested this on (I've done a bunch of CGEvent stuff recently) seems to agree.
Unsafe assumption. You are just lucky that some lower bit (device dependent bit) is being set for you. I know of no documentation that says this bit will always set. Additionally if some other device dependent bit is set your assumption would be broken. -Shawn _______________________________________________ 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