Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #import "AppController.h"
- @implementation AppController
- - (id)initWithFrame:(NSRect)frame {
- self = [super initWithFrame:frame];
- if (self) {
- // Initialization code here.
- }
- return self;
- }
- - (void)drawRect:(NSRect)rect {
- // Drawing code here.
- }
- -(void)mouseDown:(NSEvent *)theEvent
- {
- //NSLog(@"Event: %@",theEvent);
- }
- -(void)keyDown:(NSEvent *)theEvent
- {
- NSLog(@"KeyDown: %c", [[theEvent characters] characterAtIndex:0]);
- [super keyDown:theEvent];
- }
- -(void)sendEvent:(NSEvent *)event
- {
- NSLog(@"event: %@",[event type]);
- }
- @end
Add Comment
Please, Sign In to add comment