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

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

References: 
 >creating classes on the fly ?? (From: Daniel Child <email@hidden>)
 >Re: creating classes on the fly ?? (From: Thomas Engelmeier <email@hidden>)

  • Prev by Date: Re: creating classes on the fly ??
  • Next by Date: Core animation application compile error?
  • Previous by thread: Re: creating classes on the fly ??
  • Next by thread: Re: creating classes on the fly ??
  • Index(es):
    • Date
    • Thread