diff --git a/src/osx/cocoa/textctrl.mm b/src/osx/cocoa/textctrl.mm index d4304cb735..c75aad1a69 100644 --- a/src/osx/cocoa/textctrl.mm +++ b/src/osx/cocoa/textctrl.mm @@ -119,7 +119,7 @@ NSView* wxMacEditHelper::ms_viewCurrentlyEdited = nil; - (id)init { - [super init]; + self = [super init]; maxLength = 0; return self; }