Hello WOLips Experts:
I love the validation in WOLips. It catches a lot of stuff that went undetected in WebObjects Builder. However, I'm still not sure I understand fully the validation options. In particular the following:
[√ ] ... Warn if Missing Key on NSDictionary/NSArray
If an NSDictionary is supposed to hold any key in there, how can WOLips do validation if it doesn't know what keys are inside the dictionary until at run-time? Or am I interpreting this wrong? :-)
Also, I got an error similar to the one below:
There is no key 'folderID' for the keypath 'folder' in MyComponent.
In MyComponent the folder i-var is of type NSKeyValueCodingAdditions. At run-time the underlying object is either a instance of Folder which has a folderID() method or an instance of NSDictionary containing a "folderID" key. So the common denominator is that they both implement the NSKeyValueCodingAdditions interface. And I can simply invoke valueForKeyPath() from my component to get values from those objects.
But the error is telling me that there is no folderID in it. So which validation option is supposed to get rid of this error? Basically, I don't want the validation to try to determine whether or not a key is valid when the target object to which the key is being applied is of type NSKeyValueCodingAdditions. :-)
Thanks for any help.
By the way, like many others I'm sure, I'm loving it using Eclipse / WOLips. And I'm trying to do some convincing to switch our custom ant-based build system to use Eclipse / WOLips as a first class citizen.
|