Catching all keyDowns and mouseDowns in application
Catching all keyDowns and mouseDowns in application
- Subject: Catching all keyDowns and mouseDowns in application
- From: Jeremy Dronfield <email@hidden>
- Date: Fri, 11 Jun 2004 11:14:03 +0100
I have a feeling this may be a FAQ, but can't find anything in the
archives.
I'm trying to implement a timed inactivity lockout in my application,
so that if there are no key or mouse events for a set period of time,
the application locks the user out, requiring a password to unlock.
Since I don't want to have to subclass every window in the application
and override -keyDown: and -mouseDown: in each of them, is there a way
to catch all key and mouse events at one point in the responder chain?
If not, can anyone suggest a better way of handling this sort of
inactivity timeout?
Regards,
-Jeremy
_______________________________________________
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.