Re: KVC compliance and validation
Re: KVC compliance and validation
- Subject: Re: KVC compliance and validation
- From: mmalcolm crawford <email@hidden>
- Date: Sun, 28 May 2006 23:03:10 -0700
On May 28, 2006, at 6:06 AM, Richard Stacpoole wrote:
The problem is I don't know how to use the KVC validation method to
ensure that the components each have a depth given:
[...]
But I don't understand where to use the validation methods if you
can't use them in the -set<key> method. I somehow have to have
some method call the validation method which checks values in the
array (so it must be able to freely access values in the array) and
then use KVC -set<key> to enter a valid value. But what is that
method?
It's not clear what the problem is. Why can you not invoke the
validation methods directly?
In general, you should invoke a validation method prior to setting
the value, so you invoke the validation method in whatever method you
implement to set the value.
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