Re: creating classes on the fly ??
Re: creating classes on the fly ??
- Subject: Re: creating classes on the fly ??
- From: "Stefan Arentz" <email@hidden>
- Date: Sat, 22 Sep 2007 16:02:40 +0200
On 9/22/07, Thomas Engelmeier <email@hidden> wrote:
>
> On 21.09.2007, at 23:23, Daniel Child wrote:
> >
> > 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?
>
> Either that or "standard" data containers like NSDictionary, NSSet et
> al.
> For interconnected trees (graphs) you may need to add unique id
> elements for any C pointersand resolve them after loading.
Or, and I know this is kind of controversial on this list but i'll
write it anyway, use C++ and the STL and Boost for your more complex
data structures. Cocoa and it's (limited) collection classes are
certainly not the answer for all problems but since the foundation is
C or C++ based it gives you the freedom to mix and match many cool
libraries.
S.
_______________________________________________
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