We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5495647 + 242abaa commit 2843d7bCopy full SHA for 2843d7b
cocos2d-ui/Platform/Mac/CCPlatformTextFieldMac.m
@@ -58,6 +58,11 @@ - (BOOL)control:(NSControl *)control textShouldEndEditing:(NSText *)fieldEditor
58
return YES;
59
}
60
61
+- (id)nativeTextField
62
+{
63
+ return _textField;
64
+}
65
+
66
- (void)setFontSize:(float)fontSize {
67
NSFont* font = _textField.font;
68
_textField.font = [NSFont fontWithName:font.fontName size:fontSize];
0 commit comments