• 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
Re: How to simulate key press events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >How to simulate key press events (From: Abhijeet Singh <email@hidden>)

  • Prev by Date: Re: ArrayController vs Pop-up button vs Transformer -- three way tag team death match!
  • Next by Date: Re: ArrayController vs Pop-up button vs Transformer -- three way tag team death match!
  • Previous by thread: How to simulate key press events
  • Next by thread: NSScroller: Hiding the knob
  • Index(es):
    • Date
    • Thread