• 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: textfield not updating with bindings - Whats wrong?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: textfield not updating with bindings - Whats wrong?


  • Subject: Re: textfield not updating with bindings - Whats wrong?
  • From: Kieren Eaton <email@hidden>
  • Date: Sun, 24 Aug 2008 16:48:56 +0800


On 24/08/2008, at 2:30 PM, Scott Anguish wrote:


On 23-Aug-08, at 11:53 PM, Kieren Eaton wrote:

I have one minor question now that I am understanding bindings more.
Is is good policy to add an object controller instead of just binding directly to the class?




Yes. Especially when using text type objects. Depending on how you have the Value binding configured (the setting of Continuously Updates Value) you can lose data if you don't use an object controller.


To expand

if the Continuously Updates Value binding option on Value is disabled, and you don't use an object controller, when the text field resigns first responder you can lose the input. This is the role that the NSEditorRegistration and NSEditor protocols are involved with.


Thanks Scott

I appreciate  the clarification on that.  much appreciated

Kieren





_______________________________________________

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: 
 >Re: textfield not updating with bindings - Whats wrong? (From: Kieren Eaton <email@hidden>)

  • Prev by Date: using OpenPanel to select volumes?
  • Next by Date: Re: How to read pixel values of monochrome images
  • Previous by thread: Re: textfield not updating with bindings - Whats wrong?
  • Next by thread: Implementing isEqual: and hash
  • Index(es):
    • Date
    • Thread