21 行
441 B
Objective-C
21 行
441 B
Objective-C
#include "SSXRootListController.h"
|
|
|
|
@implementation SSXRootListController
|
|
|
|
- (NSArray *)specifiers {
|
|
if (!_specifiers) {
|
|
_specifiers = [[self loadSpecifiersFromPlistName:@"Root" target:self] retain];
|
|
}
|
|
|
|
return _specifiers;
|
|
}
|
|
|
|
// Respring function
|
|
- (void)respring:(id)sender {
|
|
pid_t pid;
|
|
const char* args[] = {"killall", "backboardd", NULL};
|
|
posix_spawn(&pid, "/usr/bin/killall", NULL, NULL, (char* const*)args, NULL);
|
|
}
|
|
|
|
@end
|