#include "wx/choice.h"
#include "wx/log.h"
+#import <AppKit/NSPopUpButton.h>
+
IMPLEMENT_DYNAMIC_CLASS(wxChoice, wxControl)
BEGIN_EVENT_TABLE(wxChoice, wxChoiceBase)
END_EVENT_TABLE()
if(!CreateControl(parent,winid,pos,size,style,validator,name))
return false;
+ SetNSView([[NSPopUpButton alloc] initWithFrame:MakeDefaultNSRect(size)
+ pullsDown: NO]);
+
+ [m_cocoaNSView sizeToFit];
if(m_parent)
m_parent->CocoaAddChild(this);
+ SetInitialFrameRect(pos,size);
+
return true;
}
return 0;
}
+int wxChoice::DoInsert(const wxString&, int)
+{
+ return 0;
+}
+
void wxChoice::DoSetItemClientData(int, void*)
{
}