[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 20:09:18 CET 2012
vlc/vlc-1.2 | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Fri Jan 6 15:55:08 2012 +0100| [d860092a88e83cc71f71e86f3cd65eb498d73d22] | committer: Jean-Baptiste Kempf
macosx: speed-up loading the open panel by loading its xib once VLC is finished with launching instead of prior to showing the panel
(cherry picked from commit fbaafcaf8acc376a95e35a9ed9736034ec32ef3f)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.2.git/?a=commit;h=d860092a88e83cc71f71e86f3cd65eb498d73d22
---
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