Take the 2-minute tour ×

Is it somehow possible to add a 3-finger swipe gesture on a system scale, like a hotkey ? Yes, just like the notification center gesture, only from the other side. (sandboxed)

Maybe by using a Desktop-size overlay window that is transparent and captures swipe gestures ?

share|improve this question

2 Answers 2

up vote 2 down vote accepted

If you were to use a transparent, desktop-sized overlay window, CocoaNavigationGestures on Github may be of use for code on getting left and right swipes on both Leopard and Lion.

share|improve this answer
THX. Now if the overlay would have ignoremouseclicks set to true but [self setAcceptTouchEvents:YES];, would you think it could work then ? Also, there seems to be already a 3-finger swipe build-in into cocoa to use: stackoverflow.com/questions/6747603/…. Would you rather recommend to use this or CocoaNavigationGestures ? –  cocoa coder Nov 3 '12 at 12:15
I'd give the CocoaNavigationGestures sample code a go. It believe it works with both two and three finger swipes, depending on user settings in System Preferences and is compatible with both Leopard and Lion/ML. I believe if you have setAcceptTouchEvents:YES it should be fine. –  Seb Jachec Nov 3 '12 at 12:27
As you may know the Notification Center has a special gesture: 2 finger swipe from the right edge of the trackpad. I don't see how such a truly custom swipe gesture (from the edge) is possible with CocoaNavigationGestures, or what do you think? –  cocoa coder Nov 3 '12 at 14:00
I've tried it and can do a gesture just like Notification Center's, but from the other side, just fine. –  Seb Jachec Nov 3 '12 at 14:19
Wow, and it only toggles when swiped from the edge? (sorry, can't try it out myself at the moment) –  cocoa coder Nov 3 '12 at 14:40

Create a gesture recognizer and use setNumberOfTouchesRequired = 3

share|improve this answer
ok, how do I add a gesture recognizer ? Also would it be a system level gesture & sandboxed ? Thx –  cocoa coder Nov 2 '12 at 20:47

Your Answer


