[vlc-commits] macosx: status bar menu: Use modern way to load xib

David Fuhrmann git at videolan.org
Sun Jun 10 11:03:10 CEST 2018


vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Sat Jun  9 21:02:21 2018 +0200| [74f92d20841217008eecbefe642c0bb24ed7f572] | committer: David Fuhrmann

macosx: status bar menu: Use modern way to load xib

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

 modules/gui/macosx/VLCStatusBarIcon.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/macosx/VLCStatusBarIcon.m b/modules/gui/macosx/VLCStatusBarIcon.m
index 5ae3bccdc4..0da41074a8 100644
--- a/modules/gui/macosx/VLCStatusBarIcon.m
+++ b/modules/gui/macosx/VLCStatusBarIcon.m
@@ -81,7 +81,7 @@
 
     if (self) {
         msg_Dbg(getIntf(), "Loading VLCStatusBarIcon");
-        [NSBundle loadNibNamed:@"VLCStatusBarIconMainMenu" owner:self];
+        [[NSBundle mainBundle] loadNibNamed:@"VLCStatusBarIconMainMenu" owner:self topLevelObjects:nil];
     }
 
     return self;



More information about the vlc-commits mailing list