• 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: Can a subclass of NSDictionary do this?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Can a subclass of NSDictionary do this?


  • Subject: RE: Can a subclass of NSDictionary do this?
  • From: "Jonathan E. Jackel" <email@hidden>
  • Date: Tue, 22 Jul 2003 19:05:11 -0400

> I thought of categories but I would prefer another approach, because I
> don't want to
> impose the added overhead on all instances of NSDictionary.

Huh? How does a category add overhead to an instance? I mean, I know
there's more code in the class, but it's not like the size or performance of
an instance is affected in any significant way by the existence of a
category, is it? It seems to me like a subclass has at least as much
overhead as a category. And since you are dealing with a class cluster and
your subclass has to override a bunch of primitives, a subclass seems a lot
less efficient in terms of programmer time.

Personally, I would try a category and see if it works.

Jonathan
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Can a subclass of NSDictionary do this? (From: James Quick <email@hidden>)

  • Prev by Date: Re: Subclassing NSPort (or NSSocketPort)
  • Next by Date: flummoxed by math failure
  • Previous by thread: Can a subclass of NSDictionary do this?
  • Next by thread: Re: Can a subclass of NSDictionary do this?
  • Index(es):
    • Date
    • Thread