• 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
Recognizing return/enter in TextField
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Recognizing return/enter in TextField


  • Subject: Recognizing return/enter in TextField
  • From: Donald Brown <email@hidden>
  • Date: Tue, 30 Apr 2002 10:20:07 -0500

I've got a search TextField in a toolbar, where the user presses return, my
document (which is a delegate of the textfield) sees controlDidEndEditing,
finds the relevant area, and highlights it. The problem is that when the
text field is no longer key, it sends again controlDidEndEditing, which
means it finds the second occurrence of the item. I tried subclassing
NSTextField to override keydown, but it's never called.

Any ideas?

Donald

--
Donald Brown
email@hidden
http://www.eamontales.com

We have met the enemy and he is us - Pogo
_______________________________________________
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: Recognizing return/enter in TextField
      • From: Douglas Davidson <email@hidden>
  • Prev by Date: Re: Refresh woes for custom OGL pane
  • Next by Date: Cocoa Applications
  • Previous by thread: Re: Help Viewer issue
  • Next by thread: Re: Recognizing return/enter in TextField
  • Index(es):
    • Date
    • Thread