How to implement the two-finger swipe gesture in Cocoa to go back and forward?

Three finger swipes are easiest, because NSResponder already does the work for you.

Three finger swipes are easiest, because NSResponder already does the work for you: - (void)swipeWithEvent:(NSEvent *)event; If you want to support two finger swipes (which I don't think technically can be classified as swipes, but rather scroll gestures), you'll have to manually process the touches- see http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/EventOverview/HandlingTouchEvents/HandlingTouchEvents.html#//apple_ref/doc/uid/10000060i-CH13-SW10.

This works with a two-finger swipe on the Magic Mouse. I guess you were talking about the Magic Trackpad? I don't have one yet, so I asked about the Magic Mouse.

I need one to test, though. – WTP Jul 19 at 13:49 You're right- I have a Magic Trackpad but no Magic Mouse, and on the Magic Trackpad two-finger swipes scroll. – sbooth Jul 19 at 22:12.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions