• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Custom WODisplayGroup with extended query behaviour, problem with KeyValue Coding.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Custom WODisplayGroup with extended query behaviour, problem with KeyValue Coding.


  • Subject: Custom WODisplayGroup with extended query behaviour, problem with KeyValue Coding.
  • From: Fredrik Lindgren <email@hidden>
  • Date: Thu, 5 Feb 2009 15:05:14 +0100

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
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Custom attribute class conversion in entity modeler
  • Next by Date: Re: SSL Troubleshotting
  • Previous by thread: Re: Custom attribute class conversion in entity modeler
  • Next by thread: Fwd: Eclipse 3.5M5 - The future is Cocoa
  • Index(es):
    • Date
    • Thread