+#if wxUSE_MARKUP
+void wxButtonCocoaImpl::SetLabelMarkup(const wxString& markup)
+{
+ wxMarkupToAttrString toAttr(GetWXPeer(), markup);
+ NSMutableAttributedString *attrString = toAttr.GetNSAttributedString();
+
+ // Button text is always centered.
+ NSMutableParagraphStyle *
+ paragraphStyle = [[NSMutableParagraphStyle alloc] init];
+ [paragraphStyle setAlignment: NSCenterTextAlignment];
+ [attrString addAttribute:NSParagraphStyleAttributeName
+ value:paragraphStyle
+ range:NSMakeRange(0, [attrString length])];
+ [paragraphStyle release];
+
+ [GetNSButton() setAttributedTitle:attrString];
+}
+#endif // wxUSE_MARKUP
+
+void wxButtonCocoaImpl::SetPressedBitmap( const wxBitmap& bitmap )
+{
+ NSButton* button = GetNSButton();
+ [button setAlternateImage: bitmap.GetNSImage()];
+ if ( GetWXPeer()->IsKindOf(wxCLASSINFO(wxToggleButton)) )
+ {
+ [button setButtonType:NSToggleButton];
+ }
+ else