Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p><strong>Edit:</strong> Snow Leopard adds supported APIs for gestures and multi-touch. See the <a href="http://developer.apple.com/library/mac/releasenotes/Cocoa/AppKitOlderNotes.html#X10_6Notes" rel="nofollow noreferrer">AppKit release notes for Snow Leopard</a>; ⌘F for “gesture” and “MultiTouch” (sic). They'll look pretty familiar if you've used ones below, but there probably are some fine differences, so read the new documentation anyway.</p> <hr> <blockquote> <p>Is this supported using publicly available APIs on Mac OS X 10.5 Leopard?</p> </blockquote> <p>No. 10.5.0 doesn't support it at all, and 10.5.1 through 10.5.6 make you implement undocumented methods.</p> <blockquote> <p>If not, how "bad" are the private APIs (e.g. is it just an undeclared constant or a whole new set of methods)?</p> </blockquote> <p>Not bad at all. <a href="http://web.archive.org/web/20090618162428/http://cocoadex.com/2008/02/nsevent-modifications-swipe-ro.html" rel="nofollow noreferrer">You have to implement some undocumented event methods in your view.</a> Since <em>you're</em> the one implementing the methods, you shouldn't crash if Apple changes the methods; all that will happen is the feature will stop working.</p> <p>However, if you'll be retrieving the absolute (not delta) magnification or rotation from the event, then those are as-yet-undocumented methods of the event, so you should guard those messages with <code>respondsToSelector:</code> messages and perform careful range-checking on the methods' return values.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload