Re: NSObjectController HELP
Re: NSObjectController HELP
- Subject: Re: NSObjectController HELP
- From: Wade Tregaskis <email@hidden>
- Date: Sun, 6 Jun 2004 15:18:48 +1000
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.
Although of course there'd be the usual issues with compatibility and
so-called "standards" and whatever else, I think it'd be a terrific
idea to implement it such that bindings worked at the compiler level,
on the instances themselves, rather than requiring this huge confusing
web of AppKit functionality.
Of course, I'm not volunteering to modify gcc to do this. ;)
FWIW, I feel bindings is frequently over-hyped, and not really a useful
tool for newbies to bother learning. I've been coding for Cocoa for
several years now, and I don't have any use for it myself; while others
might, I don't think it's a generally useful tool.
Wade Tregaskis (aim: wadetregaskis)
-- Sed quis custodiet ipsos custodes?
_______________________________________________
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.