]> git.saurik.com Git - wxWidgets.git/blobdiff - src/cocoa/stattext.mm
added operators for comparing wxString to wxCStrData
[wxWidgets.git] / src / cocoa / stattext.mm
index 4bba022c2751253db4da65137530b776a642b91c..b009c21868abaa0f0f3f0b907a05c35df2012993 100644 (file)
@@ -91,6 +91,12 @@ void wxStaticText::SetLabel(const wxString& label)
     [[GetNSTextField() superview] setNeedsDisplayInRect:newFrameRect];
 }
 
+wxString wxStaticText::GetLabel() const
+{
+    wxAutoNSAutoreleasePool pool;
+    return wxStringWithNSString([GetNSTextField() stringValue]);
+}
+
 void wxStaticText::Cocoa_didChangeText(void)
 {
 }