diff --git a/src/osx/cocoa/window.mm b/src/osx/cocoa/window.mm index 8bbb6b6226..23c3cd460d 100644 --- a/src/osx/cocoa/window.mm +++ b/src/osx/cocoa/window.mm @@ -1266,7 +1266,7 @@ void wxWidgetCocoaImpl::controlTextDidChange() #else #define wxOSX_CLASS_ADD_METHOD( c, s, i, t ) \ - { s, t, i }, + { s, (char*) t, i }, #endif