• 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: "Gerriet M. Denkmann" <email@hidden>
  • Date: Sun, 22 Jun 2003 22:53:48 +0200

On Sonntag, Juni 22, 2003, at 10:26 Uhr, Dustin Voss wrote:

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.


Thanks! Excellent idea. Now it works as expected.

Gerriet.
_______________________________________________
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.

References: 
 >Re: Action in TextFields (From: Dustin Voss <email@hidden>)

  • Prev by Date: NSToolbarItem Menu
  • Next by Date: Re: Navigating property lists using paths?
  • Previous by thread: Re: Action in TextFields
  • Next by thread: Navigating property lists using paths?
  • Index(es):
    • Date
    • Thread