[vlc-commits] macosx: Fix startup delays by loading Open.nib only on demand

David Fuhrmann git at videolan.org
Wed Apr 2 14:35:10 CEST 2014


vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Wed Apr  2 14:24:48 2014 +0200| [3d5587d3f9f0e80e058ae79e88b866fcb45a3940] | committer: David Fuhrmann

macosx: Fix startup delays by loading Open.nib only on demand

There is no need to already load it here, not every user uses the open panel.
Additionally, input devices listing may take one or two seconds the
first time after the system started, so this is also better done only when needed.

close #11098

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

 modules/gui/macosx/intf.m |    3 ---
 1 file changed, 3 deletions(-)

diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m
index 174af9c..53e4867 100644
--- a/modules/gui/macosx/intf.m
+++ b/modules/gui/macosx/intf.m
@@ -777,9 +777,6 @@ static VLCMain *_o_sharedMainInstance = nil;
     [[[NSWorkspace sharedWorkspace] notificationCenter] addObserver:self selector:@selector(computerWillSleep:)
            name:NSWorkspaceWillSleepNotification object:nil];
 
-    /* we will need this, so let's load it here so the interface appears to be more responsive */
-    nib_open_loaded = [NSBundle loadNibNamed:@"Open" owner: NSApp];
-
     /* update the main window */
     [o_mainwindow updateWindow];
     [o_mainwindow updateTimeSlider];



More information about the vlc-commits mailing list