Skip to content

Commit 06d2996

Browse files
authored
Fixes issue where CCTextField.hidden doesn't hide NSTextField on OSX
This addresses the issue where if you hide a CCTextField the corresponding NSTextField will remain on screen until the CCTextField is deallocated.
1 parent a2c963b commit 06d2996

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

cocos2d-ui/Platform/Mac/CCPlatformTextFieldMac.m

+8
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,14 @@ - (NSString*) string
101101
{
102102
return _textField.stringValue;
103103
}
104+
105+
- (BOOL)hidden {
106+
return _textField.hidden;
107+
}
108+
109+
- (void) setHidden:(BOOL)hidden {
110+
_textField.hidden = hidden;
111+
}
104112
@end
105113

106114
#endif

0 commit comments

Comments
 (0)