• 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: Wade Tregaskis <email@hidden>
  • Date: Thu, 4 Sep 2003 23:18:56 +1000

What I'd like to do is subclass a dictionary, so that it has a method where
it can receive a sort key...

Whenever you start with an aim like that, know that you're most likely talking about extending a class, not subclassing it. Check out categories in the ObjC language guide. In normal cases that would be what you want, and I presume you could still use categories on an abstract class like the NS collection classes.

Wade Tregaskis
-- Sed quis custodiet ipsos custodes?
_______________________________________________
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: 
 >Re: Subclassing dictionaries? (From: John Timmer <email@hidden>)

  • Prev by Date: Re: Hiding an NSControl
  • Next by Date: Re: Split Buttons: How do I make em?
  • Previous by thread: RE: Subclassing dictionaries?
  • Next by thread: Re: beta testing
  • Index(es):
    • Date
    • Thread