Remove website, now in yukkurigames.com repository.
[enjoyable.git] / Classes / EnjoyableApplicationDelegate.m
index 76f99e0..017926a 100644 (file)
@@ -5,8 +5,6 @@
 //  Created by Sam McCall on 4/05/09.
 //
 
-#import <Sparkle/Sparkle.h>
-
 #import "EnjoyableApplicationDelegate.h"
 
 #import "NJMapping.h"
 - (void)eventSimulationStarted:(NSNotification *)note {
     self.simulatingEventsButton.state = NSOnState;
     statusItem.image = [NSImage imageNamed:@"Status Menu Icon"];
+    [NSProcessInfo.processInfo
+        disableAutomaticTermination:@"Event simulation running."];
     [NSWorkspace.sharedWorkspace.notificationCenter
         addObserver:self
         selector:@selector(didSwitchApplication:)
 - (void)eventSimulationStopped:(NSNotification *)note {
     self.simulatingEventsButton.state = NSOffState;
     statusItem.image = [NSImage imageNamed:@"Status Menu Icon Disabled"];
+    [NSProcessInfo.processInfo
+        enableAutomaticTermination:@"Event simulation running."];
     [NSWorkspace.sharedWorkspace.notificationCenter
         removeObserver:self
         name:NSWorkspaceDidActivateApplicationNotification
 - (void)mappingsViewController:(NJMappingsViewController *)mvc
           renameMappingAtIndex:(NSInteger)index
                         toName:(NSString *)name {
-    [self.ic renameMapping:self.ic.mappings[index]
-                                        to:name];
+    [self.ic renameMapping:self.ic.mappings[index] to:name];
 }
 
 - (BOOL)mappingsViewController:(NJMappingsViewController *)mvc