• 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
Re: KVC and static methods (was Hairy Java related question)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: KVC and static methods (was Hairy Java related question)
      • From: petite_abeille <email@hidden>
    • Re: KVC and static methods (was Hairy Java related question)
      • From: petite_abeille <email@hidden>
    • Re: KVC and static methods (was Hairy Java related question)
      • From: petite_abeille <email@hidden>
References: 
 >Re: KVC and static methods (was Hairy Java related question) (From: Ray Ackland <email@hidden>)

  • Prev by Date: Re: WO 5.2.2 update
  • Next by Date: Re: KVC and static methods (was Hairy Java related question)
  • Previous by thread: Re: KVC and static methods (was Hairy Java related question)
  • Next by thread: Re: KVC and static methods (was Hairy Java related question)
  • Index(es):
    • Date
    • Thread