Hello Group!
I have a little problem regarding KeyValueCoding and WODisplayGroups. I thought I could extend the built in query management in an extended display group called MyDisplayGroup.
I have added a queryMatchAll to this group that parses a string with comma-separated values and from this builds an AndQualifier that is added to the the normal qualifierFromQueryValues.
This is all working well except for the fact that if I use a key other then a direct attribute then it fails. It seems like the normal KeyValue-coding "hacks" this behavior and I would like to use the same "hack".
Example (working): value = contactDisplayGroup.queryMatch.name value = contactDisplayGroup.queryMatchAll.name
This makes dictionaries that look like this: queryMatch - dictionary: { name = "test" } queryMatchAll - dictionary: { name = "test" }
and:
Example: value = contactDisplayGroup.queryMatch.mainAddress.address1 value = contactDisplayGroup.queryMatchAll.mainAddress.address1
This makes dictionaries that look like this: queryMatch - dictionary: { mainAddress.address1 = "test" } queryMatchAll - dictionary: { }
If I log the call to queryMatchAll which just returns the dictionary, I see that it is called, an overridden setObjectForKey in that dictionary does nothing, it isn't called.
Does anybody have an idea how to fix this?
Regards Fredrik Lindgren drop&search systems Uppsala, Sweden |