• 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
Make NSTextField register changes immediately
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Make NSTextField register changes immediately


  • Subject: Make NSTextField register changes immediately
  • From: James Walker <email@hidden>
  • Date: Tue, 26 Oct 2010 12:14:03 -0700

I have an NSTextField with its value bound to a numeric property, and I'd like that value to change as soon as any typing occurs, without forcing the user to type enter or tab. Here's what I've tried:

Check the "Continuous" control attribute.  No effect.

Check "Validates Immediately" on the binding.  No effect.

In a controlTextDidChange: delegate method, call validateEditing. No effect.

In a controlTextDidChange: delegate method, send endEditing: to the text field cell. This does make the value change, but also makes the field lose focus.

I could make the controlTextDidChange: delegate method get the value and set the property, but at that point I might as well not have a binding at all.
--
James W. Walker, Innoventive Software LLC
<http://www.frameforge3d.com/>
_______________________________________________


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


  • Follow-Ups:
    • Re: Make NSTextField register changes immediately
      • From: Keary Suska <email@hidden>
  • Prev by Date: Re: Mapping APIs for use in Cocoa app
  • Next by Date: Re: Make NSTextField register changes immediately
  • Previous by thread: QTMovieLayer performance
  • Next by thread: Re: Make NSTextField register changes immediately
  • Index(es):
    • Date
    • Thread