Commit beab9340 authored by David Fuhrmann's avatar David Fuhrmann

macosx: set window delegate for messages panel, remove singleton

parent 3068a849
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<archive type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="8.00"> <archive type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="8.00">
<data> <data>
<int key="IBDocument.SystemTarget">1060</int> <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.InterfaceBuilderVersion">7706</string>
<string key="IBDocument.AppKitVersion">1348.17</string> <string key="IBDocument.AppKitVersion">1348.17</string>
<string key="IBDocument.HIToolboxVersion">758.70</string> <string key="IBDocument.HIToolboxVersion">758.70</string>
...@@ -323,6 +323,14 @@ ...@@ -323,6 +323,14 @@
</object> </object>
<int key="connectionID">24</int> <int key="connectionID">24</int>
</object> </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="IBConnectionRecord">
<object class="IBOutletConnection" key="connection"> <object class="IBOutletConnection" key="connection">
<string key="label">dataSource</string> <string key="label">dataSource</string>
...@@ -476,7 +484,7 @@ ...@@ -476,7 +484,7 @@
<nil key="activeLocalization"/> <nil key="activeLocalization"/>
<dictionary class="NSMutableDictionary" key="localizations"/> <dictionary class="NSMutableDictionary" key="localizations"/>
<nil key="sourceID"/> <nil key="sourceID"/>
<int key="maxID">24</int> <int key="maxID">25</int>
</object> </object>
<object class="IBClassDescriber" key="IBDocument.Classes"> <object class="IBClassDescriber" key="IBDocument.Classes">
<array class="NSMutableArray" key="referencedPartialClassDescriptions"> <array class="NSMutableArray" key="referencedPartialClassDescriptions">
......
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
IBOutlet NSButton * _msgs_refresh_btn; IBOutlet NSButton * _msgs_refresh_btn;
IBOutlet id _msgs_table; IBOutlet id _msgs_table;
} }
+ (VLCDebugMessageVisualizer *)sharedInstance;
- (void)showWindow:(id)sender; - (void)showWindow:(id)sender;
......
...@@ -67,18 +67,6 @@ static void MsgCallback(void *data, int type, const vlc_log_t *item, const char ...@@ -67,18 +67,6 @@ static void MsgCallback(void *data, int type, const vlc_log_t *item, const char
@implementation VLCDebugMessageVisualizer @implementation VLCDebugMessageVisualizer
+ (VLCDebugMessageVisualizer *)sharedInstance
{
static VLCDebugMessageVisualizer *sharedInstance = nil;
static dispatch_once_t pred;
dispatch_once(&pred, ^{
sharedInstance = [VLCDebugMessageVisualizer new];
});
return sharedInstance;
}
- (id)init - (id)init
{ {
self = [super initWithWindowNibName:@"DebugMessageVisualizer"]; self = [super initWithWindowNibName:@"DebugMessageVisualizer"];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment