]> git.sesse.net Git - vlc/commitdiff
* replaced all NSLog-calls by msg_***
authorFelix Paul Kühne <fkuehne@videolan.org>
Sun, 19 Feb 2006 16:01:47 +0000 (16:01 +0000)
committerFelix Paul Kühne <fkuehne@videolan.org>
Sun, 19 Feb 2006 16:01:47 +0000 (16:01 +0000)
* changed the button order in DIALOG_YES_NO_CANCEL. (the order is now: Cancel, No, Yes; which is more Mac-like IMO, but feel free to change it again)

modules/gui/macosx/interaction.h
modules/gui/macosx/interaction.m

index 15dec7f2a7f541763db262701ff2dd6bdf380e5e..906bdbafefff7dd35d3ebcca5861d3af0aabb2f2 100644 (file)
@@ -30,6 +30,7 @@
 @interface VLCInteraction : NSObject
 {
     interaction_dialog_t    *p_dialog;
+    intf_thread_t * p_intf;
 }
 
 -(id)initDialog: (interaction_dialog_t *)_p_dialog;
index 8c912600d77ff5071760091ac5cbe4a11590dfb1..61bec635a602582cbde833b9742cae3b0412f31c 100644 (file)
@@ -22,7 +22,7 @@
  *****************************************************************************/
 
 #include "intf.h"
-#import <interaction.h>
+#import "interaction.h"
 
 /*****************************************************************************
  * VLCInteractionList implementation
 
 -(id)initDialog: (interaction_dialog_t *)_p_dialog
 {
+    p_intf = VLCIntf;
     [super init];
     p_dialog = _p_dialog;
     return self;
     int i = 0;
     id o_window = NULL;
     if( !p_dialog )
-        NSLog( @"serious issue" );
+        msg_Err( p_intf, "serious issue (p_dialog == nil)" );
 
     NSString *o_title = [NSString stringWithUTF8String:p_dialog->psz_title ? p_dialog->psz_title : "title"];
     NSString *o_description = [NSString stringWithUTF8String:p_dialog->psz_description ? p_dialog->psz_description : ""];
         o_window = [NSApp mainWindow];
     }
     
-    NSLog( @"Title: %@", o_title );
-    NSLog( @"Description: %@", o_description );
+    msg_Dbg( p_intf, "Title: %s", [o_title UTF8String] );
+    msg_Dbg( p_intf, "Description: %s", [o_description UTF8String] );
     if( p_dialog->i_id == DIALOG_ERRORS )
     {
         for( i = 0; i < p_dialog->i_widgets; i++ )
         {
-            NSLog( @"Error: %@", [NSString stringWithUTF8String: p_dialog->pp_widgets[i]->psz_text] );
+            msg_Err( p_intf, "Error: %s", p_dialog->pp_widgets[i]->psz_text );
         }
     }
     else
     {
         for( i = 0; i < p_dialog->i_widgets; i++ )
         {
-            NSLog( @"widget: %@", [NSString stringWithUTF8String: p_dialog->pp_widgets[i]->psz_text] );
+            msg_Dbg( p_intf, "widget: %s", p_dialog->pp_widgets[i]->psz_text );
             o_description = [o_description stringByAppendingString:
                                 [NSString stringWithUTF8String: p_dialog->pp_widgets[i]->psz_text]];
         }
         }
         else if( p_dialog->i_flags & DIALOG_YES_NO_CANCEL )
         {
-            NSBeginInformationalAlertSheet( o_title, @"Yes" , @"No", @"Cancel", o_window, self,
+            NSBeginInformationalAlertSheet( o_title, @"Yes", @"Cancel", @"No", o_window, self,
                 @selector(sheetDidEnd: returnCode: contextInfo:), NULL, nil, o_description );
         }
         else
-            NSLog( @"not implemented yet" );
+            msg_Dbg( p_intf, "requested dialog type not implemented yet" );
     }
 }
 
 
 -(void)updateDialog
 {
-    NSLog( @"update event" );
+    msg_Dbg( p_intf, "update event" );
 }
 
 -(void)hideDialog
 {
-    NSLog( @"hide event" );
+    msg_Dbg( p_intf, "hide event" );
 }
 
 -(void)destroyDialog
 {
-    NSLog( @"destroy event" );
+    msg_Dbg( p_intf, "destroy event" );
 }
 
 -(void)dealloc