RE: Can a subclass of NSDictionary do this?
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.