Re: Feature suggestions for easier debugging of Cocoa Bindings.
Re: Feature suggestions for easier debugging of Cocoa Bindings.
- Subject: Re: Feature suggestions for easier debugging of Cocoa Bindings.
- From: mmalcolm crawford <email@hidden>
- Date: Tue, 19 Apr 2005 20:06:57 -0700
On Apr 19, 2005, at 7:57 PM, Jeff Laing wrote:
My understanding of the latter part of the post was that he wanted
to ensure data integrity, and that's precisely what the validation
methods do...
... whereas what I read it as was "I configured up most of my bindings
correctly, but left this one place unconnected. When I
dereferenced the
missing pointer via bindings, the resulting silence didn't help in
locating
the problem".
Perhaps Corey could clarify...?
Whatever, KVC validation methods certainly address this issue:
Depending on your data model, not having a particular model
property could indicate that the state of the data is inconsistent
with the expected data model. This is an error that needs to be
caught as soon as possible.
If my data model is "Person has a first name, and a last name".
While "first name" and "last name" can be zero length strings, both
those properties still have to exists according to my data model.
If those properties did not even exist (Null), then something is
seriously wrong! I would want to know as soon as possible in that
case.
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