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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com