Re: How to avoid multiple clicks on a push button
Eric Gorr <[email protected]> Mon, 22 Nov 2010 19:14:59 -0500
| Newsgroups | gmane.comp.macosx.devel |
|---|---|
| Message-ID | <[email protected]> |
Just one idea I had would be to keep track of the last time the action method was executed and, if it is less then some value, to not do anything. On Nov 22, 2010, at 4:54 AM, Abhijeet Singh wrote: > Hi,I am working on a user interface. There is only one window in my application with Back and Next buttons on it. On Next / Back button click my application performs some task and the current view is swapped with another view in the window. It works fine until somebody clicks Next (or Back) button twice in succession like a double click. The event is fired 2 times and it messes up the whole functionality of my application. I tried controlling this behavior by disabling the buttons as soon as they are clicked but it doesn't help. Still the event is fired multiple times. Is there any way i can control this behavior of the push buttons. Please help....RegardsAbhijeetDear macosxdev ! Get Yourself a cool, short @in.com Email ID now! > _______________________________________________ > MacOSX-dev mailing list > [email protected] > http://www.omnigroup.com/mailman/listinfo/macosx-dev