Cocoa Gestures - Mouse actions in Cocoa apps
Oct 28, '02 01:15:14AM
Contributed by: robg
The macosxhints Rating:

[0 to 10 lights; 10 = perfect!]
A while back, we ran a hint on mouse gestures in Mozilla. Mouse gestures are basically motions of the mouse that lead to actions within a program. Sometime last week, someone submitted Cocoa Gestures 1.0 as a potential pick of the week. After looking at the program, I must say I agree. It may not completely change your world, but Cocoa Gestures is a cool little program.
As you might have guessed from the name, Cocoa Gestures gives you mouse gestures in any Cocoa application. Installation is trivial (drag a folder to your Library folder), and gestures are then available to any subsequently launched Cocoa programs. Every Cocoa app will have a new Cocoa gestures menu item in its application menu; this is where you set the gestures and the actions they will perform. You start by deciding what modifier key to use with what mouse button, and then you can add and remove gestures from each app's "gestures dictionary." There are pre-defined gestures for many things, and you can add and delete from the list as you like. As an example, up-down-up in Mail is predefined for "New Message." Hold down your modifier key and selected mouse button, and drag up then down then up, and a new message window springs open.
Cocoa Gestures is harder to explain than it is to use, so give it a try ... if you've never used mouse gestures before, Cocoa Gestures is a very easy way to get acquainted with them.
Comments (16)
Mac OS X Hints
http://hints.macworld.com/article.php?story=20021028011514691