#include "wx/log.h"
#endif
+#include "wx/cocoa/autorelease.h"
+
#import <AppKit/NSButton.h>
#include "wx/cocoa/string.h"
const wxSize& size, long style,
const wxValidator& validator, const wxString& name)
{
+ wxAutoNSAutoreleasePool pool;
wxLogDebug("Creating control with id=%d",winid);
if(!CreateControl(parent,winid,pos,size,style,validator,name))
return false;
Command(event);
}
+wxString wxButton::GetLabel() const
+{
+ return wxString([[GetNSButton() title] lossyCString]);
+}
+
+void wxButton::SetLabel(const wxString& label)
+{
+ [GetNSButton() setTitle:wxNSStringWithWxString(label)];
+}
+
+wxSize wxButtonBase::GetDefaultSize()
+{
+ // FIXME: stub
+ return wxDefaultSize;
+}
+