]> git.saurik.com Git - wxWidgets.git/blobdiff - src/cocoa/statbox.mm
Remove wxDCBase DeviceToLogical* and LogicalToDevice* methods which were basically...
[wxWidgets.git] / src / cocoa / statbox.mm
index 289294fff6f283fa9fb79c9a4ec939714b58f92c..6bfc8111dd7c15420025578920b71b582023b796 100644 (file)
@@ -63,3 +63,15 @@ void wxStaticBox::GetBordersForSizer(int *borderTop, int *borderOther) const
     if(nextBorder > *borderOther)
         *borderOther = nextBorder;
 }
+
+void wxStaticBox::SetLabel(const wxString& label)
+{
+   wxAutoNSAutoreleasePool pool;
+   [GetNSBox() setTitle:wxNSStringWithWxString(label)];
+}
+
+wxString wxStaticBox::GetLabel() const
+{
+   wxAutoNSAutoreleasePool pool;
+   return wxStringWithNSString([GetNSBox() title]);
+}