summaryrefslogtreecommitdiff
path: root/intemperateprefs/INPRootListController.m
diff options
context:
space:
mode:
authorFivePixels <o5pxels@gmail.com>2020-06-14 13:16:31 -0500
committerFivePixels <o5pxels@gmail.com>2020-06-14 13:16:31 -0500
commited1e428fba75b03eae532ef46e33d1bff6b94788 (patch)
tree4946bc74c7c4261f11a176cf5c63b24f77eab5ab /intemperateprefs/INPRootListController.m
downloadintemperate-ed1e428fba75b03eae532ef46e33d1bff6b94788.tar.xz
intemperate-ed1e428fba75b03eae532ef46e33d1bff6b94788.zip
1.0
Diffstat (limited to 'intemperateprefs/INPRootListController.m')
-rw-r--r--intemperateprefs/INPRootListController.m30
1 files changed, 30 insertions, 0 deletions
diff --git a/intemperateprefs/INPRootListController.m b/intemperateprefs/INPRootListController.m
new file mode 100644
index 0000000..2f29e97
--- /dev/null
+++ b/intemperateprefs/INPRootListController.m
@@ -0,0 +1,30 @@
+#import <Preferences/PSListController.h>
+#import <spawn.h>
+@interface INPRootListController : PSListController
+
+@end
+
+@implementation INPRootListController
+
+- (NSArray *)specifiers {
+ if (!_specifiers) {
+ _specifiers = [self loadSpecifiersFromPlistName:@"Intemperate" target:self];
+ }
+
+ return _specifiers;
+}
+-(void)respring {
+ pid_t pid;
+ const char* args[] = {"sbreload", NULL};
+ posix_spawn(&pid, "/usr/bin/sbreload", NULL, NULL, (char* const*)args, NULL);
+}
+-(void)openTwitterDM {
+ [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://twitter.com/messages/compose?recipient_id=974524608949903361&text=%28Please+describe+your+issue+here%29"] options:@{} completionHandler:nil];
+}
+-(void)openTwitter5px {
+ [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://twitter.com/o5pxels"] options:@{} completionHandler:nil];
+}
+-(void)openGitHub {
+ [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://github.com/fivepixels/intemperate"] options:@{} completionHandler:nil];
+}
+@end