From c5a18a3407899a2bc3252f56f8db9aaa1d009325 Mon Sep 17 00:00:00 2001 From: Dimitri Schoolwerth Date: Sun, 1 May 2016 22:20:16 +0400 Subject: [PATCH] Revert "Create native buttons without any label in wxOSX/Cocoa" This change is not any longer needed since the fix in 98f5315405cf4cfc11ec3c7015146804267e67f7. This reverts commit ef1db7acda601ec5dd6240094233938341fbd43e. --- src/osx/cocoa/button.mm | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/osx/cocoa/button.mm b/src/osx/cocoa/button.mm index d966f738ae..a0cfe24a6c 100644 --- a/src/osx/cocoa/button.mm +++ b/src/osx/cocoa/button.mm @@ -37,18 +37,6 @@ } } -- (id) initWithFrame:(NSRect) frame -{ - self = [super initWithFrame:frame]; - - // NSButton uses "Button" as its title by default which is inconvenient as - // wxWidgets expects the control to not have any default label, so reset it - // here to resolve this mismatch. - [self setTitle:@""]; - - return self; -} - - (int) intValue { switch ( [self state] )