Re: How to simulate key press events
Re: How to simulate key press events
- Subject: Re: How to simulate key press events
- From: Alexander Spohr <email@hidden>
- Date: Wed, 20 Apr 2011 09:36:15 +0200
Am 20.04.2011 um 08:59 schrieb Abhijeet Singh:
> I tried to simulate Esc key press
This should make you feel that you do something wrong.
> What i am trying to do now is when user try to click on some other row while the current row is in edit mode I want to ask him that the "current record is not saved yet . do you want to save it?". If he says yes then i want to save it. For that I need to simulate the Esc key press so that my routine on Esc key press gets called.
Why? Just have a new "save" method. Call that from your Escape and when he says yes.
atze
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden