To receive swipeWithEvent: messages, you must make sure that the three-finger trick is not tied to anything that could cause a conflict. Go to System Settings → Trackpad → Additional gestures and set these settings for one of the following:
Swipe between pages:
- Swipe two or three fingers, or
- Swipe three fingers.
In particular, swipe between full-screen applications should not be three fingers, otherwise you will not receive a swipeWithEvent: message.
Together, these two preference parameters trigger the swipeWithEvent: messages that should be sent to the first responder.
Of course, you still have to implement the real swipe logic. And if you want to scroll with liquid, you will need to do a little work. The following is an example of how to do this in the Lion App Kit release notes in the Trace of Fluid section.
See http://developer.apple.com/library/mac/#releasenotes/Cocoa/AppKit.html
Dalmazio
source share