X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ccdc11bbaf0310a474ad7b9d41413b31c3544356..5d0fac27c4b2151b1ff3689cdb602bbaf10a4003:/src/cocoa/stattext.mm diff --git a/src/cocoa/stattext.mm b/src/cocoa/stattext.mm index 4bba022c27..b009c21868 100644 --- a/src/cocoa/stattext.mm +++ b/src/cocoa/stattext.mm @@ -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) { }