Take a look at this:
http://developer.apple.com/documentation/WebObjects/Reference/API/com/
webobjects/foundation/
NSKeyValueCoding.ErrorHandling.html#handleQueryWithUnboundKey
(java.lang.String)
Pierre Bernard
Houdah Software s.à r.l.
On Apr 15, 2007, at 1:50 PM, Florijan Stamenkovic wrote:
Hi all,
I have an idea, but am not sure if it would be EOF acceptable.
Essentially, I would like to expand the KVC system somewhat. The
point would be this:
public Object valueForKey(String key){
try{
return super.valueForKey(key);
}catch(Exception ex){
Object rVal = valueForCustomKey(key);
if(rVal != null) return rVal;
throw ex;
}
}
public Object valueForCustomKey(String key){
// find a key in another system as EOF's KVC
...
}
So, if there is not EOF result for a key, try the additional
implementation. It would be ideal of course to get this to work
with the rest of KVC, to enable sums, counts, and all that stuff on
custom keys as well. What I am thinking / hoping at the moment is
that KVC is implemented so that for retrieving and setting values
for keys it relies on a narrow set of methods (NSKeyValueCoding
interface only???)...
Any words of wisdom?
Thanks!
Florijan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([EMAIL PROTECTED])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/webobjects-
lists%40houdah.com
This email sent to [EMAIL PROTECTED]
- - -
Houdah Software s. à r. l.
http://www.houdah.com
- Quality Mac OS X software
- Premium WebObjects consulting
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([EMAIL PROTECTED])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]