From 6d1c28b3c74828f7810301f3dadd41d89e326ccb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Felix=20Paul=20K=C3=BChne?= Date: Thu, 13 Jul 2006 12:06:22 +0000 Subject: [PATCH] * implement the error panel correctly (for the records: not < 10.3 compatible) --- modules/gui/macosx/interaction.m | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/modules/gui/macosx/interaction.m b/modules/gui/macosx/interaction.m index 962d137a5c..62fd42376f 100644 --- a/modules/gui/macosx/interaction.m +++ b/modules/gui/macosx/interaction.m @@ -158,7 +158,14 @@ if( p_dialog->i_id == DIALOG_ERRORS ) { - msg_Err( p_intf, "Error: %s", p_dialog->psz_description ); + msg_Dbg( p_intf, "error panel requested" ); + NSAlert * ourAlert = [NSAlert alertWithMessageText: + [NSString stringWithUTF8String:p_dialog->psz_title ? p_dialog->psz_title : _("Error")] + defaultButton: _NS("OK") alternateButton: nil otherButton: nil + informativeTextWithFormat: + [NSString stringWithUTF8String:p_dialog->psz_description]]; + [ourAlert setAlertStyle: NSWarningAlertStyle]; + [ourAlert runModal]; } else { -- 2.39.5