Key down issue
Key down issue
- Subject: Key down issue
- From: Denis Vaillant <email@hidden>
- Date: Fri, 07 Nov 2003 16:12:36 +0100
Hi everybody,
I am experiencing a little problem with the keyDown method
I have wrote this code
-(void)keyDown:(NSEvent *)theEvent
{
NSLog(@"[key down] : %@", [theEvent characters]);
}
In the log window, while pressing the 4 key, I get that :
2003-11-07 16:05:15.218 Cocoa OpenGL[2356] [key down] : 4
2003-11-07 16:05:15.718 Cocoa OpenGL[2356] [key down] : 4
2003-11-07 16:05:15.801 Cocoa OpenGL[2356] [key down] : 4
2003-11-07 16:05:15.885 Cocoa OpenGL[2356] [key down] : 4
2003-11-07 16:05:15.968 Cocoa OpenGL[2356] [key down] : 4
2003-11-07 16:05:16.052 Cocoa OpenGL[2356] [key down] : 4
2003-11-07 16:05:16.135 Cocoa OpenGL[2356] [key down] : 4
I do not understand why there is delay of half a second between the first
and the second time cocoa executes the method while it takes less than 0.01s
after ?
Is it possible to remove this delay ?
Thanks for your solutions ;)
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.