mirror of https://github.com/axmolengine/axmol.git
Removed a Static Analyzer Warning about immutable NSNotification object ownership by changing a property from assign to copy.
This commit is contained in:
parent
61a5b2a742
commit
7d66f62881
|
@ -109,7 +109,7 @@ Copyright (C) 2008 Apple Inc. All Rights Reserved.
|
|||
@property(readwrite, copy) UITextRange *selectedTextRange;
|
||||
@property(nonatomic, readonly) id<UITextInputTokenizer> tokenizer;
|
||||
@property(nonatomic, readonly, getter = isKeyboardShown) BOOL isKeyboardShown;
|
||||
@property(nonatomic, retain) NSNotification* keyboardShowNotification;
|
||||
@property(nonatomic, copy) NSNotification* keyboardShowNotification;
|
||||
/** creates an initializes an EAGLView with a frame and 0-bit depth buffer, and a RGB565 color buffer */
|
||||
+ (id) viewWithFrame:(CGRect)frame;
|
||||
/** creates an initializes an EAGLView with a frame, a color buffer format, and 0-bit depth buffer */
|
||||
|
|
|
@ -243,7 +243,7 @@ static EAGLView *view = 0;
|
|||
- (void) dealloc
|
||||
{
|
||||
[renderer_ release];
|
||||
[self.keyboardShowNotification release];
|
||||
self.keyboardShowNotification = NULL; // implicit release
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
|
@ -825,7 +825,7 @@ static EAGLView *view = 0;
|
|||
cocos2d::CCIMEDispatcher* dispatcher = cocos2d::CCIMEDispatcher::sharedDispatcher();
|
||||
if (UIKeyboardWillShowNotification == type)
|
||||
{
|
||||
self.keyboardShowNotification = [notif copy];
|
||||
self.keyboardShowNotification = notif; // implicit copy
|
||||
dispatcher->dispatchKeyboardWillShow(notiInfo);
|
||||
}
|
||||
else if (UIKeyboardDidShowNotification == type)
|
||||
|
|
Loading…
Reference in New Issue