[Seaside] Smalltalk question

Dmitry Dorofeev dima-sender-3c337a at yasp.com
Fri Aug 5 16:42:10 CEST 2005

Hi all.

I'd like to create an instance of class by knowing only a class name.

something like this:

classname := anObject class asString , 'Controller'.
"expect something like FSBlockListController in a classname"

controller := Smalltalk giveMeInstanceOf: classname.
"expect result of /FSBlockListController new/ in controller"

I know it should be possible in Squeak in one line of code, 
but i am still a newbie...

Thank you very much.


More information about the Seaside mailing list