• 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: James Quick <email@hidden>
  • Date: Thu, 24 Jul 2003 16:48:26 -0400

On Wednesday, July 23, 2003, at 01:36 PM, Marco Scheurer wrote:
And IMHO, using key paths of length > 1 is usually not such a good idea. Of course it's handy, but it breaks encapsulation. Better to ask directly valueForKey "c" and let the receiver figure out how to get > it.

Could you elaborate? It would seem to me that an abbreviated key would obfuscate the
intention of the original writer. He's obviously intending his lookup to produce a result.
What benefit offsets the cost of maintaining code that less clearly states its purpose to the reader?
_______________________________________________
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: Can a subclass of NSDictionary do this?
      • From: James Quick <email@hidden>
References: 
 >Re: Can a subclass of NSDictionary do this? (From: Marco Scheurer <email@hidden>)

  • Prev by Date: Re: Design for Cocoa (was Re: Can a subclass of NSDictionary do this?)
  • Next by Date: Re: Simple NSAttributedString question
  • Previous by thread: Re: Can a subclass of NSDictionary do this?
  • Next by thread: Re: Can a subclass of NSDictionary do this?
  • Index(es):
    • Date
    • Thread