- strcpy( (char*) pascalTitle , m_caption ) ;
- c2pstr( (char*) pascalTitle ) ;
- strcpy( (char*) pascalText , m_message ) ;
- wxMacConvertNewlines( (char*)pascalText ,(char*) pascalText) ;
- c2pstr( (char*) pascalText ) ;
+ if (wxApp::s_macDefaultEncodingIsPC)
+ {
+ strcpy(cText , wxMacMakeMacStringFromPC( m_message) ) ;
+ }
+ else
+ {
+ strcpy( cText , m_message ) ;
+ }
+
+ wxMacConvertNewlines( cText , cText ) ;
+ CopyCStringToPascal( cText , pascalText ) ;
+
+ wxASSERT_MSG( ( m_dialogStyle & 0x3F ) != wxYES , "this style is not supported on mac" ) ;