cocos2d/cocos2d-iphone — pull request #222 by jllust (2012-07-22 09:06:40+00:00)
Title: Press Activate for Menu Items

In my project I had a need for separate actions to be fired on press and release.
Maybe others do too.

CCMenuItemSprite* btn = [CCMenuItemSprite itemWithNormalSprite:sprite1 selectedSprite:sprite2 block:^(id sender) {
//TODO: do stuff on release
}];
[btn setPressBlock:^(id sender) {
//TODO: do stuff on press
}];