Constructing class names dynamically
Constructing class names dynamically
- Subject: Constructing class names dynamically
- From: "Mohan Parthasarathy" <email@hidden>
- Date: Tue, 13 Jan 2009 13:18:10 -0800
Hi,
Sorry for the bad subject name. I found no other way to explain this. What i
need is a way to generate a class name dynamically. For example, the user
selects an entry in the Table (assume just one column) and each entry is
handled by a separate class. Obviously, i can have a dictionary which can be
keyed in using the "entry" selected which in turn has the relevant object to
handle the selection.
The other way is to dynamically construct the name from the selected "entry"
assuming the classes are named properly. The main section of the code does
not have to know what each class is (hence avoid including each of the
header files) as each of them is expected to implement a few methods
(protocol). Does this make sense ? Or this is a bad idea ?
Thanks for any suggestions,
mohan
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden