Re: KVC and static methods (was Hairy Java related question)
Re: KVC and static methods (was Hairy Java related question)
- Subject: Re: KVC and static methods (was Hairy Java related question)
- From: petite_abeille <email@hidden>
- Date: Mon, 27 Oct 2003 12:38:19 +0100
On Oct 26, 2003, at 21:20, Ben Trumbull wrote:
>> The suggestion of KVC is one that could be the ideal answer, and it
>> would never have occurred to me. Thanks for that suggestion. Now the
>> question is whether it works with static methods.
>
> No. KVC does not recognize static methods.
By the way, if you are looking for a KVC mechanism which *does* support
static method invocation, and feel adventurous, you may want to take a
look at ZOE's very own implementation: alt.dev.szfoundation.SZKeyValue,
which, by a fortunate coincidence, uses the same syntax as
NSKeyValueCoding.DefaultImplementation... source code available [1].
Alternatively, and if you feel like going totally overboard, you may
want to check OGNL [2].
Cheers,
PA.
[1] http://zoe.nu/misc/Workspace20031022.tgz
[2] http://www.ognl.org/
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.