Merge pull request #421 from leon-li/master

add CCMenuItem::setTarget
This commit is contained in:
minggo 2011-07-26 18:48:24 -07:00
commit 33e85bdc53
2 changed files with 611 additions and 602 deletions

View File

@ -74,6 +74,9 @@ namespace cocos2d{
* If pszFunctionName is NULL, then unregister it.
*/
virtual void registerScriptHandler(const char* pszFunctionName);
/** set the target/selector of the menu item*/
void setTarget(SelectorProtocol *rec, SEL_MenuHandler selector);
protected:
SelectorProtocol* m_pListener;
SEL_MenuHandler m_pfnSelector;
@ -309,4 +312,4 @@ namespace cocos2d{
}
#endif //__CCMENU_ITEM_H__
#endif //__CCMENU_ITEM_H__

File diff suppressed because it is too large Load Diff