• 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: NSObjectController HELP
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSObjectController HELP


  • Subject: Re: NSObjectController HELP
  • From: mmalcolm crawford <email@hidden>
  • Date: Sat, 5 Jun 2004 23:09:36 -0700

On Jun 5, 2004, at 10:18 PM, Wade Tregaskis wrote:

The problem is that the textfields that are bound to the instance variables don't seem to see the changes in my instance variables (when they are changed as the app runs) and update themselves accordingly. Maybe I misread the docs, but I thought that KVO meant the bound object would be updated as the instance variable changed? Why would they see the initial values but not the changes as it executes?
How are you changing the instance variables' values? You cannot change them directly, KVO requires that you use appropriate accessor methods.
I should like to mention that this stumped me as well, the first time I worked with bindings. All documentation I'd read up till that point (and indeed, even now) suggested everything was "magic" and "automatic". Combined with the hype that bindings generated when first released, I figured this was obviously how it worked.

I believe the documentation makes it clear that the technologies underlying bindings are not magic:

<http://developer.apple.com/documentation/Cocoa/Conceptual/ CocoaBindings/Concepts/HowDoBindingsWork.html>

mmalc
_______________________________________________
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.


  • Follow-Ups:
    • Re: NSObjectController HELP
      • From: Allan Odgaard <email@hidden>
References: 
 >Re: NSObjectController HELP (From: Vince Ackerman <email@hidden>)
 >Re: NSObjectController HELP (From: mmalcolm crawford <email@hidden>)
 >Re: NSObjectController HELP (From: Vince Ackerman <email@hidden>)
 >Re: NSObjectController HELP (From: mmalcolm crawford <email@hidden>)

  • Prev by Date: Re: NSObjectController HELP
  • Next by Date: Re: NSObjectController HELP
  • Previous by thread: Re: NSObjectController HELP
  • Next by thread: Re: NSObjectController HELP
  • Index(es):
    • Date
    • Thread