-- (IBAction)setNewHotKey:(id)sender
-{
- switch ([sender tag])
- {
- case 401:
- [self setKeyCombo:playPauseCombo];
- [self setHotKey:@"PlayPause"];
- break;
- case 402:
- [self setKeyCombo:nextTrackCombo];
- [self setHotKey:@"NextTrack"];
- break;
- case 403:
- [self setKeyCombo:prevTrackCombo];
- [self setHotKey:@"PrevTrack"];
- break;
- case 404:
- [self setKeyCombo:toggleLoopCombo];
- [self setHotKey:@"ToggleLoop"];
- break;
- case 405:
- [self setKeyCombo:toggleShuffleCombo];
- [self setHotKey:@"ToggleShuffle"];
- break;
- case 406:
- [self setKeyCombo:trackInfoCombo];
- [self setHotKey:@"TrackInfo"];
- break;
- case 407:
- [self setKeyCombo:upcomingSongsCombo];
- [self setHotKey:@"UpcomingSongs"];
- break;
- case 408:
- [self setKeyCombo:volumeIncrementCombo];
- [self setHotKey:@"IncrementVolume"];
- break;
- case 409:
- [self setKeyCombo:volumeDecrementCombo];
- [self setHotKey:@"DecrementVolume"];
- break;
- case 410:
- [self setKeyCombo:ratingIncrementCombo];
- [self setHotKey:@"IncrementRating"];
- break;
- case 411:
- [self setKeyCombo:ratingDecrementCombo];
- [self setHotKey:@"DecrementRating"];
- break;
- }
-}