Allow mapping names to be auto-set based on bundleand executable path names as well...
[enjoyable.git] / Categories / NSRunningApplication+NJPossibleNames.h
diff --git a/Categories/NSRunningApplication+NJPossibleNames.h b/Categories/NSRunningApplication+NJPossibleNames.h
new file mode 100644 (file)
index 0000000..13a6ffb
--- /dev/null
@@ -0,0 +1,20 @@
+//
+//  NSRunningApplication+NJPossibleNames.h
+//  Enjoyable
+//
+//  Created by Joe Wreschnig on 3/8/13.
+//
+//
+
+#import <Cocoa/Cocoa.h>
+
+@interface NSRunningApplication (NJPossibleNames)
+
+- (NSArray *)possibleMappingNames;
+    // Return a list of mapping names this application could match.
+
+- (NSString *)bestMappingName;
+    // Return the best mapping name, taking into account ways in which
+    // application names are often broken.
+
+@end