• 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: Subclassing dictionaries?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Subclassing dictionaries?
      • From: John Timmer <email@hidden>
References: 
 >Subclassing dictionaries? (From: John Timmer <email@hidden>)

  • Prev by Date: Subclassing dictionaries?
  • Next by Date: Re: Hiding an NSControl
  • Previous by thread: Subclassing dictionaries?
  • Next by thread: Re: Subclassing dictionaries?
  • Index(es):
    • Date
    • Thread