• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Key down issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Key down issue
      • From: Shawn Erickson <email@hidden>
    • Re: Key down issue
      • From: Michael Hudson <email@hidden>
  • Prev by Date: NSBrowser problems
  • Next by Date: Re: Modifying the array of an NSArrayController
  • Previous by thread: Re: NSBrowser problems
  • Next by thread: Re: Key down issue
  • Index(es):
    • Date
    • Thread