From f9d2cd1486907647cba94f8f238b6044136b9c47 Mon Sep 17 00:00:00 2001 From: Sarah Smith Date: Sun, 16 Jun 2013 14:40:13 +1000 Subject: [PATCH] Fix some warnings. --- CCControlExtension/CCControl/CCControl.m | 16 +++++++++++++++- .../CCControl/Utils/CCScale9Sprite.m | 15 +++++++++++++++ 2 files changed, 30 insertions(+), 1 deletion(-) diff --git a/CCControlExtension/CCControl/CCControl.m b/CCControlExtension/CCControl/CCControl.m index 878bb01..fd9eb96 100755 --- a/CCControlExtension/CCControl/CCControl.m +++ b/CCControlExtension/CCControl/CCControl.m @@ -120,6 +120,20 @@ @implementation CCControl @synthesize opacity = opacity_; @synthesize color = color_; @synthesize opacityModifyRGB = opacityModifyRGB_; +@synthesize displayedColor; +@synthesize cascadeColorEnabled; +@synthesize displayedOpacity; +@synthesize cascadeOpacityEnabled; + +- (void)updateDisplayedColor:(ccColor3B)color +{ + // Nothing to do +} + +- (void)updateDisplayedOpacity:(GLubyte)opacity +{ + // Nothing to do +} - (void)dealloc { @@ -135,7 +149,7 @@ - (id)init { #ifdef __IPHONE_OS_VERSION_MAX_ALLOWED // Enabled the touch event - self.isTouchEnabled = YES; + [self setTouchEnabled:YES]; #elif __MAC_OS_X_VERSION_MAX_ALLOWED // Enabled the mouse event self.mouseEnabled = YES; diff --git a/CCControlExtension/CCControl/Utils/CCScale9Sprite.m b/CCControlExtension/CCControl/Utils/CCScale9Sprite.m index 6c656c1..475e548 100755 --- a/CCControlExtension/CCControl/Utils/CCScale9Sprite.m +++ b/CCControlExtension/CCControl/Utils/CCScale9Sprite.m @@ -39,6 +39,21 @@ @implementation CCScale9Sprite @synthesize insetRight = insetRight_; @synthesize preferedSize = preferedSize_; +@synthesize displayedOpacity; +@synthesize cascadeOpacityEnabled; +@synthesize displayedColor; +@synthesize cascadeColorEnabled; + +- (void)updateDisplayedColor:(ccColor3B)color +{ + // Nothing to do +} + +- (void)updateDisplayedOpacity:(GLubyte)opacity +{ + // Nothing to do +} + - (void)dealloc { [topLeft release];