Cog/Preferences/Preferences/HotKeyPane.m
Christopher Snowhill d19c2f1e95 Cleanup: Remove unused code
Signed-off-by: Christopher Snowhill <kode54@gmail.com>
2025-03-07 04:38:04 -08:00

35 lines
1.1 KiB
Objective-C

//
// HotKeyPane.m
// Preferences
//
// Created by Vincent Spader on 9/4/06.
// Copyright 2006 Vincent Spader. All rights reserved.
//
#import "HotKeyPane.h"
#import "Shortcuts.h"
@implementation HotKeyPane
// Defaults have been moved to AppController.m
- (void)awakeFromNib {
_playShortcutView.associatedUserDefaultsKey = CogPlayShortcutKey;
_nextShortcutView.associatedUserDefaultsKey = CogNextShortcutKey;
_prevShortcutView.associatedUserDefaultsKey = CogPrevShortcutKey;
_spamShortcutView.associatedUserDefaultsKey = CogSpamShortcutKey;
_fadeShortcutView.associatedUserDefaultsKey = CogFadeShortcutKey;
_seekBkwdShortcutView.associatedUserDefaultsKey = CogSeekBackwardShortcutKey;
_seekFwdShortcutView.associatedUserDefaultsKey = CogSeekForwardShortcutKey;
}
- (NSString *)title {
return NSLocalizedPrefString(@"Hot Keys");
}
- (NSImage *)icon {
if(@available(macOS 11.0, *))
return [NSImage imageWithSystemSymbolName:@"keyboard" accessibilityDescription:nil];
return [[NSImage alloc] initWithContentsOfFile:[[NSBundle bundleForClass:[self class]] pathForImageResource:@"hot_keys"]];
}
@end