- // TODO: Save immediately / shortly after changing and then enable
- // sudden termination support.
- [configsController save];
- [[NSWorkspace sharedWorkspace].notificationCenter
- removeObserver:self
- name:NSWorkspaceDidActivateApplicationNotification
- object:nil];
-}
-
-// TODO: Active state should probably be in the ConfigsController or
-// JoystickController, not here.
-
-- (BOOL)active {
- return active;
-}
-
-- (void)setActive:(BOOL)newActive {
- activeButton.label = newActive ? @"Stop" : @"Start";
- activeButton.image = [NSImage imageNamed:newActive ? @"NSStopProgressFreestandingTemplate" : @"NSGoRightTemplate"];
- activeMenuItem.state = newActive;
- active = newActive;