- (void)showPreferences:(id)sender
{
- if (!prefsController) {
- prefsController = [[PreferencesController alloc] initWithMenuTunes:self];
- [self clearHotKeys];
- }
+ [[PreferencesController sharedPrefs] setController:self];
+ [[PreferencesController sharedPrefs] showPrefsWindow:self];
}
- (void)closePreferences
if ( ( isAppRunning == ITMTRemotePlayerRunning) ) {
[self setupHotKeys];
}
- [prefsController release];
- prefsController = nil;
}