macosx: fix some warnings
authorDavid Fuhrmann <dfuhrmann@videolan.org>
Sun, 6 Dec 2015 11:04:40 +0000 (12:04 +0100)
committerDavid Fuhrmann <dfuhrmann@videolan.org>
Sun, 6 Dec 2015 11:11:45 +0000 (12:11 +0100)
modules/gui/macosx/AddonsWindowController.m
modules/gui/macosx/DebugMessageVisualizer.m

index ceabb5d..6dbcea6 100644 (file)
@@ -278,7 +278,7 @@ static void addonsEventsCallback( const vlc_event_t *event, void *data )
 
     // update ui
     [_addonsTable reloadData];
-    [self tableViewSelectionDidChange:nil];
+    [[NSNotificationCenter defaultCenter] postNotificationName:NSTableViewSelectionDidChangeNotification object:_addonsTable];
 }
 
 - (void)_findNewAddons
index 1242620..433910d 100644 (file)
@@ -103,7 +103,7 @@ static void MsgCallback(void *data, int type, const vlc_log_t *item, const char
 
 - (IBAction)updateMessagesPanel:(id)sender
 {
-    [self windowDidBecomeKey:nil];
+    [[NSNotificationCenter defaultCenter] postNotificationName:NSWindowDidBecomeKeyNotification object:self.window];
 }
 
 - (void)windowDidBecomeKey:(NSNotification *)notification