+wxSize wxTextCtrl::DoGetBestSize() const
+{
+ wxAutoNSAutoreleasePool pool;
+ wxASSERT(GetNSControl());
+ NSCell *cell = [GetNSControl() cell];
+ wxASSERT(cell);
+ NSSize cellSize = [cell cellSize];
+ wxSize size(100,(int)ceil(cellSize.height));
+
+ wxLogTrace(wxTRACE_COCOA_Window_Size,wxT("wxTextCtrl=%p::DoGetBestSize()==(%d,%d)"),this,size.x,size.y);
+ return size;
+}