[Cocoa] NSFlagsChanged and repeated keys
I'm working on a GUI library and I'd like to know whether there is a way to get repeated NSFlagsChanged events like with the NSKeyDown events.
I noticed I don't get the NSFlagsChanged event when I keep the concerned key pressed, and I know it's normal.
I thought of doing this virtually, by creating the event myself if the modifier is still pressed after some time. But to do this, I need to know what's the time interval between the key press and the first repeat, and the time between each repeat. These times are set by the user in the keyboard preference panel. So... does anyone know how I could get these informations ?
Or does anyone have another better idea ?
Thanks !
Ceylo
MacBook, Mac OS X (10.5.5)