* other files: small patch to make sure that About.nib is loaded only once
C: bigben
D: MacOS X Interface (playlist)
D: documentation
+S: France / Germany
N: Emmanuel Puig
E: karibu@videolan.org
NSString *o_name;
NSString *o_version;
NSString *o_thanks_path;
-
- /* Load the needed nib-file */
- [NSBundle loadNibNamed:@"About" owner:self];
/* Get the info dictionary (Info.plist) */
o_info_dict = [[NSBundle mainBundle] infoDictionary];
id o_open; /* VLCOpen */
id o_wizard; /* VLCWizard */
BOOL nib_open_loaded; /* reference to the open-nib */
+ BOOL nib_about_loaded; /* reference to the about-nib */
BOOL nib_wizard_loaded; /* reference to the wizard-nib */
IBOutlet id o_window; /* main window */
- (IBAction)viewAbout:(id)sender
{
- [o_about showPanel];
+ if (!nib_about_loaded)
+ {
+ nib_about_loaded = [NSBundle loadNibNamed:@"About" owner:self];
+ [o_about showPanel];
+ } else {
+ [o_about showPanel];
+ }
}
- (IBAction)viewPreferences:(id)sender