X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/369559cab0b222dd9270a38ad258fe8b31e0cf9c..d2e66707deb10dea6f92e3e4092f8a43ef942a5d:/src/cocoa/radiobox.mm diff --git a/src/cocoa/radiobox.mm b/src/cocoa/radiobox.mm index 0d71ecdfad..0a8e1aaefb 100644 --- a/src/cocoa/radiobox.mm +++ b/src/cocoa/radiobox.mm @@ -7,7 +7,7 @@ // RCS-ID: $Id$ // Copyright: (c) 2003 David Elliott // (c) 2007 Software 2000 Ltd. -// Licence: wxWidgets licence +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #include "wx/wxprec.h" @@ -96,7 +96,7 @@ bool wxRadioBox::Create(wxWindow *parent, wxWindowID winid, NSMutableArray *allCells = [NSMutableArray arrayWithCapacity:n]; for(int i=0; i 0) + SetSelection(0); + if(m_parent) m_parent->CocoaAddChild(this); @@ -229,7 +234,7 @@ void wxRadioBox::SetString(unsigned int n, const wxString& label) { int r = GetRowForIndex(n); int c = GetColumnForIndex(n); - [[GetNSMatrix() cellAtRow:r column:c] setTitle:wxNSStringWithWxString(wxStripMenuCodes(label, wxStrip_Mnemonics))]; + CocoaSetLabelForObject(label, [GetNSMatrix() cellAtRow:r column:c]); } // change the individual radio button state @@ -250,7 +255,7 @@ bool wxRadioBox::Show(unsigned int n, bool show) // TODO // NOTE: Cocoa has no visible state for cells so we'd need to replace the // cell with a dummy one to hide it or alternatively subclass NSButtonCell - // and add the behavior. + // and add the behaviour. return false; }