[vlc-commits] macosx: fix some warnings

David Fuhrmann git at videolan.org
Sun Dec 6 12:12:07 CET 2015


vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Sun Dec  6 12:04:40 2015 +0100| [cf4afcbaa343d564e5b41a7242cf71d309543afa] | committer: David Fuhrmann

macosx: fix some warnings

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cf4afcbaa343d564e5b41a7242cf71d309543afa
---

 modules/gui/macosx/AddonsWindowController.m |    2 +-
 modules/gui/macosx/DebugMessageVisualizer.m |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/gui/macosx/AddonsWindowController.m b/modules/gui/macosx/AddonsWindowController.m
index ceabb5d..6dbcea6 100644
--- a/modules/gui/macosx/AddonsWindowController.m
+++ b/modules/gui/macosx/AddonsWindowController.m
@@ -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
diff --git a/modules/gui/macosx/DebugMessageVisualizer.m b/modules/gui/macosx/DebugMessageVisualizer.m
index 1242620..433910d 100644
--- a/modules/gui/macosx/DebugMessageVisualizer.m
+++ b/modules/gui/macosx/DebugMessageVisualizer.m
@@ -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



More information about the vlc-commits mailing list