Re: Subclassing dictionaries?
Re: Subclassing dictionaries?
- Subject: Re: Subclassing dictionaries?
- From: Chris Hanson <email@hidden>
- Date: Wed, 3 Sep 2003 22:25:11 -0500
On Wednesday, September 3, 2003, at 10:08 PM, John Timmer wrote:
Given that, can NSDictionary and NSMutableDictionary be subclassed
like any
other foundation object? If so, is there anything else special that I
have
to do?
Yes, you have to know what primitive methods NSDictionary class cluster
methods are expected to implement and implement those in your
subclasses.
You also need to take a step back and think about whether you *really*
need to subclass NSDictionary and NSMutableDictionary. What are you
really trying to accomplish by doing so? NSDictionary and
NSMutableDictionary are great generic containers.
-- Chris
--
Chris Hanson, bDistributed.com, Inc. | Email: email@hidden
Custom Mac OS X Development | Phone: +1-847-372-3955
http://bdistributed.com/ | Fax: +1-847-589-3738
http://bdistributed.com/Articles/ | Personal Email: email@hidden
_______________________________________________
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.