comparison mac/dw.m @ 936:4be0c9f963f8

Implement informational messagebox style on the Mac.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Tue, 26 Apr 2011 13:44:45 +0000
parents 114729f5aedc
children 83aceaaef6ed
comparison
equal deleted inserted replaced
935:114729f5aedc 936:4be0c9f963f8
2740 if(flags & DW_MB_ERROR) 2740 if(flags & DW_MB_ERROR)
2741 { 2741 {
2742 iResponse = (int) 2742 iResponse = (int)
2743 NSRunCriticalAlertPanel([ NSString stringWithUTF8String:title ], 2743 NSRunCriticalAlertPanel([ NSString stringWithUTF8String:title ],
2744 [ NSString stringWithUTF8String:outbuf ], 2744 [ NSString stringWithUTF8String:outbuf ],
2745 button1, button2, button3); } 2745 button1, button2, button3);
2746 }
2747 else if(flags & DW_MB_INFORMATION)
2748 {
2749 iResponse = (int)
2750 NSRunInformationalAlertPanel([ NSString stringWithUTF8String:title ],
2751 [ NSString stringWithUTF8String:outbuf ],
2752 button1, button2, button3);
2753 }
2746 else 2754 else
2747 { 2755 {
2748 iResponse = (int) 2756 iResponse = (int)
2749 NSRunAlertPanel([ NSString stringWithUTF8String:title ], 2757 NSRunAlertPanel([ NSString stringWithUTF8String:title ],
2750 [ NSString stringWithUTF8String:outbuf ], 2758 [ NSString stringWithUTF8String:outbuf ],