• 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: NSTextField Focus
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextField Focus


  • Subject: Re: NSTextField Focus
  • From: Marco Binder <email@hidden>
  • Date: Sat, 21 Sep 2002 20:17:28 +0200

I guess you can use NSControl4s delegate method - (BOOL)control:(NSControl *)control textShouldEndEditing:(NSText *)fieldEditor

Just return no, so editing will not end. If you want to clear the textfield upon hitting enter or if you want to process the entered data upon "Enter", this is also the place to put your code.

marco


Am Samstag, 21.09.02 um 19:32 Uhr schrieb Edward Fink:

I have an app which has an NSTextField which is the 1st responder. When the user type data in and hits enter the textfield looses "focus". How can I fix this? When the user hits enter I do not want the textfield to loose "focus". In fact I want the textfield to always have focus as long as that window is active.
_______________________________________________
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.


--
|\ /| E-Mail: email@hidden WWW: www.marco-binder.de
| \/ | Telefon: 07531 / 94 19 94 Fax: 07531 / 94 19 92
| |ARCO Snail-Mail: Banater Str. 3 - 78467 Konstanz
BINDER _____________________________________________________
_______________________________________________
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: NSTextField Focus
      • From: Edward Fink <email@hidden>
References: 
 >NSTextField Focus (From: Edward Fink <email@hidden>)

  • Prev by Date: Re: NSAttributedString and HTML
  • Next by Date: Re: Scaling down an image proportionally
  • Previous by thread: NSTextField Focus
  • Next by thread: Re: NSTextField Focus
  • Index(es):
    • Date
    • Thread