macosx: set window delegate for messages panel, remove singleton
authorDavid Fuhrmann <dfuhrmann@videolan.org>
Sun, 9 Aug 2015 16:26:03 +0000 (18:26 +0200)
committerDavid Fuhrmann <dfuhrmann@videolan.org>
Sun, 9 Aug 2015 16:36:12 +0000 (18:36 +0200)
extras/package/macosx/Resources/English.lproj/DebugMessageVisualizer.xib
modules/gui/macosx/DebugMessageVisualizer.h
modules/gui/macosx/DebugMessageVisualizer.m

index a35e4f1..5a8c27f 100644 (file)
@@ -2,7 +2,7 @@
 <archive type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="8.00">
        <data>
                <int key="IBDocument.SystemTarget">1060</int>
-               <string key="IBDocument.SystemVersion">14F6a</string>
+               <string key="IBDocument.SystemVersion">14F25a</string>
                <string key="IBDocument.InterfaceBuilderVersion">7706</string>
                <string key="IBDocument.AppKitVersion">1348.17</string>
                <string key="IBDocument.HIToolboxVersion">758.70</string>
                                        </object>
                                        <int key="connectionID">24</int>
                                </object>
+                               <object class="IBConnectionRecord">
+                                       <object class="IBOutletConnection" key="connection">
+                                               <string key="label">delegate</string>
+                                               <reference key="source" ref="401114513"/>
+                                               <reference key="destination" ref="1001"/>
+                                       </object>
+                                       <int key="connectionID">25</int>
+                               </object>
                                <object class="IBConnectionRecord">
                                        <object class="IBOutletConnection" key="connection">
                                                <string key="label">dataSource</string>
                        <nil key="activeLocalization"/>
                        <dictionary class="NSMutableDictionary" key="localizations"/>
                        <nil key="sourceID"/>
-                       <int key="maxID">24</int>
+                       <int key="maxID">25</int>
                </object>
                <object class="IBClassDescriber" key="IBDocument.Classes">
                        <array class="NSMutableArray" key="referencedPartialClassDescriptions">
index 225174e..1b1ba23 100644 (file)
@@ -31,7 +31,6 @@
     IBOutlet NSButton * _msgs_refresh_btn;
     IBOutlet id _msgs_table;
 }
-+ (VLCDebugMessageVisualizer *)sharedInstance;
 
 - (void)showWindow:(id)sender;
 
index b784045..d832d12 100644 (file)
@@ -67,18 +67,6 @@ static void MsgCallback(void *data, int type, const vlc_log_t *item, const char
 
 @implementation VLCDebugMessageVisualizer
 
-+ (VLCDebugMessageVisualizer *)sharedInstance
-{
-    static VLCDebugMessageVisualizer *sharedInstance = nil;
-    static dispatch_once_t pred;
-
-    dispatch_once(&pred, ^{
-        sharedInstance = [VLCDebugMessageVisualizer new];
-    });
-
-    return sharedInstance;
-}
-
 - (id)init
 {
     self = [super initWithWindowNibName:@"DebugMessageVisualizer"];