Please note: this project is inactive since early 2006

 
8.2.1 How does it work

The valueForKey searches the property 'key' in the following way: it first searches some getters (methods), and falls back to searching for instance's attributes if none where found; if you need to remember something, it is that methods are always preferred. The searches are made in the following order:

  1. method getKey()
  2. method key()
  3. method _getKey()
  4. method _key()
  5. variable key
  6. variable _key

The method takeValueForKey also searches setters, than attributes, in the following order:

  1. method setKey()
  2. method _setKey()
  3. variable key
  4. variable _key

Comments are welcome: Sebastien Bigaret / Modeling Home Page
Hosted by:SourceForge.net Logo