Support relaunching in the background as part of resume/launch items.
[enjoyable.git] / Categories / NSRunningApplication+LoginItem.h
diff --git a/Categories/NSRunningApplication+LoginItem.h b/Categories/NSRunningApplication+LoginItem.h
new file mode 100644 (file)
index 0000000..da5dd19
--- /dev/null
@@ -0,0 +1,19 @@
+//
+//  NSRunningApplication+LoginItem.h
+//  Enjoyable
+//
+//  Created by Joe Wreschnig on 3/13/13.
+//
+//
+
+#import <Cocoa/Cocoa.h>
+
+@interface NSRunningApplication (LoginItem)
+    // Don't be a jerk. Ask the user before doing this.
+
+- (BOOL)isLoginItem;
+- (void)addToLoginItems;
+- (void)removeFromLoginItems;
+- (BOOL)wasLaunchedAsLoginItemOrResume;
+
+@end