+namespace
+{
+ NSAlertStyle GetAlertStyleFromWXStyle( long style )
+ {
+ NSAlertStyle alertType = NSWarningAlertStyle;
+ if (style & wxICON_EXCLAMATION)
+ alertType = NSCriticalAlertStyle;
+ else if (style & wxICON_HAND)
+ alertType = NSWarningAlertStyle;
+ else if (style & wxICON_INFORMATION)
+ alertType = NSInformationalAlertStyle;
+ else if (style & wxICON_QUESTION)
+ alertType = NSInformationalAlertStyle;
+ return alertType;
+ }
+}
+