creating classes on the fly ??
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