From ad976c9edfcaa2d16a842d08067adf7e2923f959 Mon Sep 17 00:00:00 2001 From: matthewleon Date: Fri, 15 Feb 2008 22:47:27 +0000 Subject: [PATCH] Moved Spotlight Window nib loading code. --- Application/AppController.m | 2 +- Spotlight/SpotlightWindowController.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Application/AppController.m b/Application/AppController.m index 9d218e726..7fc6ae684 100644 --- a/Application/AppController.m +++ b/Application/AppController.m @@ -244,7 +244,7 @@ increase/decrease as long as the user holds the left/right, plus/minus button */ [self registerHotKeys]; - [spotlightWindowController initWithWindowNibName:@"SpotlightPanel"]; + [spotlightWindowController init]; //Init Remote if ([[NSUserDefaults standardUserDefaults] boolForKey:@"remoteEnabled"] && ![[NSUserDefaults standardUserDefaults] boolForKey:@"remoteOnlyOnActive"]) { diff --git a/Spotlight/SpotlightWindowController.m b/Spotlight/SpotlightWindowController.m index 7976c6ae5..f4c604e10 100644 --- a/Spotlight/SpotlightWindowController.m +++ b/Spotlight/SpotlightWindowController.m @@ -38,7 +38,7 @@ static NSPredicate * musicOnlyPredicate = nil; - (id)init { - if (self = [super init]) { + if (self = [super initWithWindowNibName:@"SpotlightPanel"]) { self.query = [[NSMetadataQuery alloc] init]; [self.query setDelegate:self]; }