+ virtual void SetLabel(const wxString& title, wxFontEncoding encoding)
+ {
+ wxCFStringRef text( title , encoding );
+
+ NSMutableAttributedString *
+ attrstring = [[NSMutableAttributedString alloc] initWithString:text.AsNSString()];
+ DoSetAttrString(attrstring);
+ [attrstring release];
+ }
+
+#if wxUSE_MARKUP
+ virtual void SetLabelMarkup( const wxString& markup)
+ {
+ wxMarkupToAttrString toAttr(GetWXPeer(), markup);
+
+ DoSetAttrString(toAttr.GetNSAttributedString());
+ }
+#endif // wxUSE_MARKUP
+
+private:
+ void DoSetAttrString(NSMutableAttributedString *attrstring)
+ {