is it possible to initialize a class with a dictionary? my first thought would be to create a method like:
intializeWithDictionary: aDictionary
then, loop through the elements and do something like:
instVarNamed: key put: value
but the book says:
Caveat: Although these methods are useful for building development tools, using them to develop conventional applications is a bad idea: these reflective methods break the encapsulation boundary of your objects and can there- fore make your code much harder to understand and maintain.--��
should i avoid this?
----
peace,
sergio
photographer, journalist, visionary