Re: Correct way to implement validateValue:?
Re: Correct way to implement validateValue:?
- Subject: Re: Correct way to implement validateValue:?
- From: mmalcolm crawford <email@hidden>
- Date: Fri, 24 Jun 2005 16:25:26 -0700
On Jun 24, 2005, at 3:08 PM, Keith Blount wrote:
It's not clear why you're implementing this method
or where.
Sorry, I thought I had been clear on this. Why:
To clarify: Why are you implementing a method with that signature?
The documentation lists the expected signature of a custom validation
method (following a pattern similar to that of KVC-compliant accessors):
See <http://developer.apple.com/documentation/Cocoa/Conceptual/
KeyValueCoding/Concepts/Validation.html>.
So, in my model class (KBNode) in which the properties
mutable dictionary is an ivar. I don't quite know
what's unclear about that. I was following your own
manual bindings example (or rather, trying to apply
it, and evidently failing :) ).
The validation method in the example shows the correct method signature:
-(BOOL)validatePrice:(id *)value error:(NSError **)outError
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