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: Ben Trumbull <email@hidden>
- Date: Sun, 26 Oct 2003 12:20:37 -0800
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.
Yeah, from what I had been reading it looked like I would have
needed to instantiate a dummy object just to get the info.
???
foo.class provides you at compile time access to the java.lang.Class
represented by the identifier foo. For example, String.class,
NSDictionary.class, EOEditingContext.class ...
You do not need an object instance to perform meta operations (what
methods both instance and static does it have? what are all its
fields ?) on the class. You do not need an object instance of invoke
static methods, or access static fields.
--
-Ben
_______________________________________________
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.