• 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: Continuous NSTextField not updating bound value continuously?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Continuous NSTextField not updating bound value continuously?


  • Subject: Re: Continuous NSTextField not updating bound value continuously?
  • From: Jason Foreman <email@hidden>
  • Date: Tue, 8 Sep 2009 13:18:37 -0500

On Sep 8, 2009, at 1:05 PM, Doug Knowles wrote:

Hi,
I have a text field (two, actually) bound to a string value in a controller
object, and I'd like to validate the value on each keystroke so that I can
enable other controls appropriately depending on the content of the field.
The text fields are set to "continuous" updating in IB, and I have confirmed
this by checking the fields' "isContinuous" in the code. However, the bound
value is not updated on every keystroke, but only when the field loses key
status.


The only thing that I can think is different between this case and most
other uses is that the window is application modal, but I can't think of why
that would affect continuous updating.


Any thoughts of something else I might be missing?

It sounds like you've set the "Continuous" property of the text field. When using bindings, you need to set the "Continuously Updates Value" property of the binding in order to get the effect you're looking for. Can you verify that you've set the property on the binding and not just the text field?



Jason


Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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: Continuous NSTextField not updating bound value continuously?
      • From: Doug Knowles <email@hidden>
References: 
 >Continuous NSTextField not updating bound value continuously? (From: Doug Knowles <email@hidden>)

  • Prev by Date: Re: NSPDFImageRep Memory Leak?
  • Next by Date: Re: Anti-aliasing in Snow Leopard (10.6) PDFView
  • Previous by thread: Continuous NSTextField not updating bound value continuously?
  • Next by thread: Re: Continuous NSTextField not updating bound value continuously?
  • Index(es):
    • Date
    • Thread