• 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
creating classes on the fly ??
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

creating classes on the fly ??


  • Subject: creating classes on the fly ??
  • From: Daniel Child <email@hidden>
  • Date: Fri, 21 Sep 2007 17:23:49 -0400

Hi All,

I'm trying to look ahead to features of Cocoa I don't know about and was hoping I could get pointers on which way to go. My ultimate goal is to parse a large linguistic corpus using lexicons so I can analyze the vocabulary used. I guess that means being able to load large lexicons into memory so the corpus can be checked against the lexicons.

I've created an interface for loading the lexicons, but need to decide how to store the data. Ideally, I could use an interface to describe the data structure to my program....but that leads to a key question....

*** Is it possible to define the details of a class dynamically?

For example, let's say I use the generic parser to parse lexicon flat files having different data structures. Is there any way in Cocoa to create the class and describe the type and number of instance variables dynamically?

Or should I really be looking into Core Data instead?

Thanks.

Daniel
_______________________________________________

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: creating classes on the fly ??
      • From: Thomas Engelmeier <email@hidden>
    • Re: creating classes on the fly ??
      • From: Scott Thompson <email@hidden>
  • Prev by Date: Using NSDocument w/o always displaying the document window
  • Next by Date: Re: creating classes on the fly ??
  • Previous by thread: Re: Using NSDocument w/o always displaying the document window
  • Next by thread: Re: creating classes on the fly ??
  • Index(es):
    • Date
    • Thread