Re: addObserver:forKeyPath:options:context
Re: addObserver:forKeyPath:options:context
- Subject: Re: addObserver:forKeyPath:options:context
- From: mmalcolm crawford <email@hidden>
- Date: Mon, 17 Apr 2006 14:24:23 -0700
On Apr 17, 2006, at 1:46 PM, Eric Long wrote:
How else are you tracking changes?
Well, tracking changes when using bindings is what I'm trying to
understand.
I'm not experienced with bindings. I'm trying to learn how to work
with
them.
Without bindings, I'd see changes as they are made to objects in my
glue
code. Now bindings are doing all the work of applying user edits.
How do I
know what's changed?
It seemed like since the bindings are modifying my objects and not
my own
code directly, the bindings system could also tell me when it
modifies the
data so I can track the changes.
In that case, you have to observe everything, otherwise how else will
you know when something has changed?
See "Undo" at:
<http://homepage.mac.com/mmalc/CocoaExamples/controllers.html>
I haven't been able to find sample code that shows a master/detail
implementation that detects changes to the data that must be saved.
Because conceptually it's an orthogonal problem.
Ok. If observing all properties of all objects in my array is not
the
right direction, what is the right way?
You're unlikely see an example that deals specifically with "show
[ing] a master/detail implementation that detects changes to the data
that must be saved" -- the *general* issue is "how do you observe
changes to objects' properties" rather than focussing on specifically
on saving.
mmalc
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden