• 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: Another try: removing the focus from an NSTextField
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Another try: removing the focus from an NSTextField


  • Subject: Re: Another try: removing the focus from an NSTextField
  • From: Matt Neuburg <email@hidden>
  • Date: Thu, 8 Aug 2002 07:35:33 -0700

On Thu, 08 Aug 2002 01:13:57 +0200, Marco Binder <email@hidden> said:

>I have an NSTextField and want to remove the focus from it after the user is
>done editing

If the user clicks in a different textfield or hits Tab, the focus is
removed already. Therefore the only case you have to worry about is when
the user hits Return. Therefore implement the delegate method

control:textView:doCommandBySelector:

and catch the insertNewline: selector. m.
--

matt neuburg, phd = email@hidden, http://www.tidbits.com/matt
pantes anthropoi tou eidenai oregontai phusei
Subscribe to TidBITS! It's free and smart. http://www.tidbits.com/
_______________________________________________
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.

  • Prev by Date: Re: Cocoa-Pro List
  • Next by Date: PB-Find
  • Previous by thread: Re: Prgramming style (was: Accessors)
  • Next by thread: Re: Another try: removing the focus from an NSTextField
  • Index(es):
    • Date
    • Thread