1 /////////////////////////////////////////////////////////////////////////////
2 // Name: cocoa/choice.mm
4 // Author: David Elliott
8 // Copyright: (c) 2003 David Elliott
9 // Licence: wxWindows license
10 /////////////////////////////////////////////////////////////////////////////
13 #include "wx/choice.h"
16 IMPLEMENT_DYNAMIC_CLASS(wxChoice, wxControl)
17 BEGIN_EVENT_TABLE(wxChoice, wxChoiceBase)
19 // WX_IMPLEMENT_COCOA_OWNER(wxChoice,NSButton,NSControl,NSView)
21 bool wxChoice::Create(wxWindow *parent, wxWindowID winid,
24 int n, const wxString choices[],
26 const wxValidator& validator,
29 if(!CreateControl(parent,winid,pos,size,style,validator,name))
33 m_parent->CocoaAddChild(this);
39 CocoaRemoveFromParent();
42 void wxChoice::Clear()
46 void wxChoice::Delete(int)
50 int wxChoice::GetCount() const
55 wxString wxChoice::GetString(int) const
60 void wxChoice::SetString(int, const wxString&)
64 int wxChoice::FindString(const wxString&) const
69 int wxChoice::GetSelection() const
74 int wxChoice::DoAppend(const wxString&)
79 void wxChoice::DoSetItemClientData(int, void*)
83 void* wxChoice::DoGetItemClientData(int) const
88 void wxChoice::DoSetItemClientObject(int, wxClientData*)
92 wxClientData* wxChoice::DoGetItemClientObject(int) const
97 void wxChoice::SetSelection(int)