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 @@
<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>
......@@ -323,6 +323,14 @@
</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>
......@@ -476,7 +484,7 @@
<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">
......
......@@ -31,7 +31,6 @@
IBOutlet NSButton * _msgs_refresh_btn;
IBOutlet id _msgs_table;
}
+ (VLCDebugMessageVisualizer *)sharedInstance;
- (void)showWindow:(id)sender;
......
......@@ -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"];
......
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