Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #import "libactivator.h"
- @interface EasySpring : NSObject<LAListener>
- {}
- @end
- @implementation EasySpring
- -(void)activator:(LAActivator *)activator receiveEvent:(LAEvent *)event
- {
- system("killall -9 SpringBoard");
- }
- +(void)load {
- NSAutoreleasePool *p = [[NSAutoreleasePool alloc] init];
- [[LAActivator sharedInstance] registerListener:[self new] forName:@"com.chfreeware.easyspring"];
- [p release];
- }
- @end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement