- if (m_dialogStyle & wxYES_NO)
- {
- if (m_dialogStyle & wxCANCEL)
- resourceID = kMacYesNoCancelAlertResourceID;
- else
- resourceID = kMacYesNoAlertResourceID + language * 10 ;
- }
- else if (m_dialogStyle & wxOK)
- {
- if (m_dialogStyle & wxCANCEL)
- resourceID = kMacOKAlertResourceID; // wrong
- else
- resourceID = kMacOKAlertResourceID;
- }
- else
+ cfTitle = wxMacCreateCFString( m_caption ) ;
+ cfText = wxMacCreateCFString( m_message ) ;
+ cfNoString = wxMacCreateCFString( _("No") ) ;
+ cfYesString = wxMacCreateCFString( _("Yes") ) ;
+
+ param.movable = true;
+ param.flags = 0 ;
+
+ bool skipDialog = false ;
+
+ if (m_dialogStyle & wxYES_NO)
+ {
+ if (m_dialogStyle & wxCANCEL)
+ {
+ param.defaultText = cfYesString ;
+ param.cancelText = (CFStringRef) kAlertDefaultCancelText;
+ param.otherText = cfNoString ;
+ param.helpButton = false ;
+ param.defaultButton = kAlertStdAlertOKButton;
+ param.cancelButton = kAlertStdAlertCancelButton;
+ }
+ else
+ {
+ param.defaultText = cfYesString ;
+ param.cancelText = NULL;
+ param.otherText = cfNoString ;
+ param.helpButton = false ;
+ param.defaultButton = kAlertStdAlertOKButton;
+ param.cancelButton = 0;
+ }
+ }
+ else if (m_dialogStyle & wxOK)