cocos2d/cocos2d-iphone — pull request #171 by SG7 (2012-02-23 03:09:37+00:00)
Title: TouchDispatcher has been finally fixed:) See comments for more details.

. [FIX] TouchDispatcher: correctly handles addition and removal of
handlers when being inside a touch handler ( issue #1084 #1139 #1173
#1267)
. [FIX] TouchDispatcher: correctly handles priority change of the
handler when being inside a touch handler
. [NEW] TouchDispatcher: migration from NSMutableArrays to CCArray
along with the change of internal processing allows for substantial
improvements in functions' speed.
[NEW] TouchDispatcher: user can choose which handlers process the
touches first: Standard or Targeted.
. [NEW] TouchDispatcher: user can choose one of three sorting
algorithms: InsertionSort, QSort, LMerge or none at all.
. [NEW] TouchDispatcher: user can supply his own comparator for
customized sort for the sorting algorithm. ZOrder comparator is
provided. Inverse priority sort is also an option.
. [NEW] TouchDispatcher: Introduction of new dispatcher properties:
'tag', 'disable', 'remove' and new API functions working with ranges of
attribute values give the user the ability to pinpoint and control
handler(s).
. [NEW] TouchDispatcher: New API functions give user full control over
the properties of handlers. They also allow proper disabling and
removing handlers inside and outside touch callbacks.