diff options
Diffstat (limited to 'intemperateprefs/INPRootListController.m')
| -rw-r--r-- | intemperateprefs/INPRootListController.m | 30 |
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 |
