+ DisassociateNSBox(GetNSBox());
+}
+
+void wxStaticBox::GetBordersForSizer(int *borderTop, int *borderOther) const
+{
+ NSRect contentRect = [[GetNSBox() contentView] frame];
+ NSRect thisRect = [m_cocoaNSView frame];
+ *borderTop = (int)(thisRect.size.height - (contentRect.origin.y+contentRect.size.height));
+ *borderOther = (int)(thisRect.size.width - (contentRect.origin.x+contentRect.size.width));
+ int nextBorder = (int)contentRect.origin.y;
+ if(nextBorder > *borderOther)
+ *borderOther = nextBorder;
+ nextBorder = (int)contentRect.origin.x;
+ if(nextBorder > *borderOther)
+ *borderOther = nextBorder;
+}
+
+void wxStaticBox::SetLabel(const wxString& label)
+{
+ wxAutoNSAutoreleasePool pool;
+ CocoaSetLabelForObject(label, GetNSBox());