#include "wx/cocoa/string.h"
+#include "wx/cocoa/autorelease.h"
+
#import <Foundation/NSString.h>
#import <AppKit/NSTextField.h>
const wxValidator& validator,
const wxString& name)
{
+ wxAutoNSAutoreleasePool pool;
if(!CreateControl(parent,winid,pos,size,style,validator,name))
return false;
m_cocoaNSView = NULL;
void wxTextCtrl::SetValue(wxString const& value)
{
+ wxAutoNSAutoreleasePool pool;
[GetNSTextField() setStringValue: wxNSStringWithWxString(value)];
}
wxString wxTextCtrl::GetValue() const
{
+ wxAutoNSAutoreleasePool pool;
return wxString([[GetNSTextField() stringValue] lossyCString]);
}