[vlc-commits] macosx: speed-up loading the open panel by loading its xib once VLC is finished with launching instead of prior to showing the panel

Felix Paul Kühne git at videolan.org
Fri Jan 6 15:55:15 CET 2012


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Fri Jan  6 15:55:08 2012 +0100| [fbaafcaf8acc376a95e35a9ed9736034ec32ef3f] | committer: Felix Paul Kühne

macosx: speed-up loading the open panel by loading its xib once VLC is finished with launching instead of prior to showing the panel

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

 modules/gui/macosx/intf.m |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m
index 5cb6b15..11d63ad 100644
--- a/modules/gui/macosx/intf.m
+++ b/modules/gui/macosx/intf.m
@@ -1,7 +1,7 @@
 /*****************************************************************************
  * intf.m: MacOS X interface module
  *****************************************************************************
- * Copyright (C) 2002-2011 VLC authors and VideoLAN
+ * Copyright (C) 2002-2012 VLC authors and VideoLAN
  * $Id$
  *
  * Authors: Jon Lech Johansen <jon-vl at nanocrew.net>
@@ -639,6 +639,9 @@ static VLCMain *_o_sharedMainInstance = nil;
            name:NSWorkspaceWillSleepNotification object:nil];
 
     [[VLCMain sharedInstance] performSelectorOnMainThread:@selector(lookForCrashLog) withObject:nil waitUntilDone:NO];
+
+	/* 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];
 }
 
 - (void)initStrings



More information about the vlc-commits mailing list