• 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: Get "end-editing" notice from simple NSTextField?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Get "end-editing" notice from simple NSTextField?


  • Subject: Re: Get "end-editing" notice from simple NSTextField?
  • From: Ben Lachman <email@hidden>
  • Date: Sun, 13 Apr 2008 22:17:18 -0400

On Apr 13, 2008, at 5:57 PM, Johnny Lundy wrote:

This list has been a great thing for me. I got 2 of my 3 stumpers solved with the help of people here.

What's the most clean and elegant (MVC compliant) way to receive an end-editing notice from a plain vanilla NSTextField?

I want my user to be able to just type in a string, end editing (by Return or Tab or changing focus), and then type in the next string, etc. and if my code can somehow get called I can add each entry to the array in the model.

If you hook up the textfield's delegate it will receive controlTextDidEndEditing: if you've implemented it. This goes for all controls actually (not all controls actually produce these messages of course).


->Ben
--
Ben Lachman
Acacia Tree Software

http://acaciatreesoftware.com

email@hidden
740.590.0009

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Get "end-editing" notice from simple NSTextField? (From: Johnny Lundy <email@hidden>)

  • Prev by Date: Re: Subclassing NSScroller
  • Next by Date: Core Data -- "[NSCFArray member:]: unrecognized selector"
  • Previous by thread: Get "end-editing" notice from simple NSTextField?
  • Next by thread: A question about Tabviews and tabview items
  • Index(es):
    • Date
    • Thread