• 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: Action in TextFields
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Action in TextFields


  • Subject: Re: Action in TextFields
  • From: Dustin Voss <email@hidden>
  • Date: Sun, 22 Jun 2003 13:26:57 -0700

On Saturday, June 21, 2003, at 11:24 PM, Gerriet M. Denkmann wrote:

I have a window with a NSTextField and some other NSControl.

When the user enters text in the text field and hits return, the action method is called.
But when the user clicks on some other NSControl the text field action method gets called again. This annoys me.
Currently I do:
[snippage]
But I have the feeling that this is not the correct way to distinguish between "return entered in text field" and "clicked in some other control".

Could someone please point me in the right direction?

"Trust your feelings Luke." The correct way to do this is in IB. Set it to only send the action on enter, rather than on end editing.
_______________________________________________
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.
  • Follow-Ups:
    • Re: Action in TextFields
      • From: "Gerriet M. Denkmann" <email@hidden>
References: 
 >Action in TextFields (From: "Gerriet M. Denkmann" <email@hidden>)

  • Prev by Date: Re: Where can I put this code so that it's called when a menu is clicked
  • Next by Date: NSToolbarItem Menu
  • Previous by thread: Action in TextFields
  • Next by thread: Re: Action in TextFields
  • Index(es):
    • Date
    • Thread