• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Constructing class names dynamically
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Constructing class names dynamically
      • From: Bill Bumgarner <email@hidden>
  • Prev by Date: Enable Scripting Failing - Missing something? Based on SimpleScripingVerbs sample
  • Next by Date: alternative to NSURLConnection sendSynchronousRequest
  • Previous by thread: Enable Scripting Failing - Missing something? Based on SimpleScripingVerbs sample
  • Next by thread: Re: Constructing class names dynamically
  • Index(es):
    • Date
    • Thread