Re: NSObjectController HELP
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.