[controller clearHotKeys];
}
-- (IBAction)cancel:(id)sender
-{
- [window close];
- [controller closePreferences];
-}
-
- (IBAction)cancelHotKey:(id)sender
{
[[NSNotificationCenter defaultCenter] removeObserver:self];
NSString *string = [combo userDisplayRep];
if (string == nil) {
- string = @"None";
+ string = @"";
}
if ([setHotKey isEqualToString:@"PlayPause"]) {
if (([combo isEqual:nextTrackCombo] || [combo isEqual:prevTrackCombo] ||
[self cancelHotKey:sender];
}
-- (IBAction)save:(id)sender
-{
- [self apply:nil];
- [window close];
- [controller closePreferences];
-}
-
- (IBAction)setCurrentTrackInfo:(id)sender
{
[self setKeyCombo:trackInfoCombo];
[self setHotKey:@"UpcomingSongs"];
}
+
+/*************************************************************************/
+#pragma mark -
+#pragma mark HOTKEY SUPPORT METHODS
+/*************************************************************************/
+
- (void)setHotKey:(NSString *)key
{
setHotKey = key;