X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3e43dbc6c7c76c8187958960ea3e454315f98398..27d79a5027bee4f46e57c813d072422065cb1592:/src/osx/cocoa/listbox.mm diff --git a/src/osx/cocoa/listbox.mm b/src/osx/cocoa/listbox.mm index b30cb3642e..5bfef6d047 100644 --- a/src/osx/cocoa/listbox.mm +++ b/src/osx/cocoa/listbox.mm @@ -303,7 +303,7 @@ protected: wxListBox *list = static_cast ( impl->GetWXPeer()); wxCHECK_RET( list != NULL , wxT("Listbox expected")); - wxCommandEvent event( wxEVT_COMMAND_LISTBOX_SELECTED, list->GetId() ); + wxCommandEvent event( wxEVT_LISTBOX, list->GetId() ); if ((row < 0) || (row > (int) list->GetCount())) // OS X can select an item below the last item return; @@ -321,10 +321,7 @@ protected: while (columnIndex--) [[(NSTableColumn *)[tableColumns objectAtIndex:columnIndex] dataCell] setFont:aFont]; - // todo introduce a common NSLayoutManager instance for all and use new method -#ifndef __LP64__ - [self setRowHeight:[aFont defaultLineHeightForFont]+2]; -#endif + [self setRowHeight:[gNSLayoutManager defaultLineHeightForFont:aFont]+2]; } - (void) setControlSize:(NSControlSize) size