Advertisement
Guest User

Listener.xm

a guest
Sep 2nd, 2016
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #import "libactivator.h"
  2. @interface EasySpring : NSObject<LAListener>
  3. {}
  4. @end
  5.  
  6. @implementation EasySpring
  7.  
  8. -(void)activator:(LAActivator *)activator receiveEvent:(LAEvent *)event
  9. {
  10.     system("killall -9 SpringBoard");
  11. }
  12.  
  13. +(void)load {
  14.         NSAutoreleasePool *p = [[NSAutoreleasePool alloc] init];
  15.         [[LAActivator sharedInstance] registerListener:[self new] forName:@"com.chfreeware.easyspring"];
  16.         [p release];
  17. }
  18. @end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement