From ed1e428fba75b03eae532ef46e33d1bff6b94788 Mon Sep 17 00:00:00 2001 From: FivePixels Date: Sun, 14 Jun 2020 13:16:31 -0500 Subject: 1.0 --- intemperateprefs/INPRootListController.m | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 intemperateprefs/INPRootListController.m (limited to 'intemperateprefs/INPRootListController.m') 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 +#import +@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 -- cgit v1.2.3