Guest User

Untitled

a guest
Jun 20th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. #import "AppController.h"
  2.  
  3.  
  4. @implementation AppController
  5.  
  6. - (id)initWithFrame:(NSRect)frame {
  7. self = [super initWithFrame:frame];
  8. if (self) {
  9. // Initialization code here.
  10. }
  11. return self;
  12. }
  13.  
  14. - (void)drawRect:(NSRect)rect {
  15. // Drawing code here.
  16. }
  17.  
  18. -(void)mouseDown:(NSEvent *)theEvent
  19. {
  20. //NSLog(@"Event: %@",theEvent);
  21. }
  22.  
  23. -(void)keyDown:(NSEvent *)theEvent
  24. {
  25. NSLog(@"KeyDown: %c", [[theEvent characters] characterAtIndex:0]);
  26. [super keyDown:theEvent];
  27. }
  28.  
  29. -(void)sendEvent:(NSEvent *)event
  30. {
  31. NSLog(@"event: %@",[event type]);
  32. }
  33. @end
Add Comment
Please, Sign In to add comment