- alertType = kAlertCautionAlert ;
-
-#if TARGET_API_MAC_OSX
- CFStringRef defaultButtonTitle = NULL ;
- CFStringRef alternateButtonTitle = NULL ;
- CFStringRef otherButtonTitle = NULL ;
-
- wxMacCFStringHolder cfTitle(m_caption , m_font.GetEncoding());
- wxMacCFStringHolder cfText(m_message , m_font.GetEncoding());
-
- wxMacCFStringHolder cfNoString(_("No") , m_font.GetEncoding()) ;
- wxMacCFStringHolder cfYesString( _("Yes") , m_font.GetEncoding()) ;
- wxMacCFStringHolder cfCancelString( _("Cancel") , m_font.GetEncoding()) ;
-
- int buttonId[4] = { 0 , 0 , 0 , wxID_CANCEL /* time-out */ } ;
-
- if (style & wxYES_NO)
+ alertType = kAlertNoteAlert;
+
+
+ // work out what to display
+ // if the extended text is empty then we use the caption as the title
+ // and the message as the text (for backwards compatibility)
+ // but if the extended message is not empty then we use the message as the title
+ // and the extended message as the text because that makes more sense
+
+ wxString msgtitle,msgtext;
+ if(m_extendedMessage.IsEmpty())