• 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: Key-value coding and dictionaries (was Re: Weird behavior in NSMutableDictionary)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Key-value coding and dictionaries (was Re: Weird behavior in NSMutableDictionary)


  • Subject: Re: Key-value coding and dictionaries (was Re: Weird behavior in NSMutableDictionary)
  • From: mmalcolm crawford <email@hidden>
  • Date: Sat, 18 Dec 2004 21:01:22 -0800


On Dec 18, 2004, at 9:25 AM, Jeremy Dronfield wrote:

I'm pretty sure NSDictionary overrides valueForKey to do simply objectForKey. IIRC the documentation states this explicitly... somewhere. Type wrapping is not really possible/useful because the dictionary can only contain id types anyway.
You're quite right. Although I wouldn't describe the documentation on this as "explicit". Say rather "inscrutable". Somewhere in the murky depths of Foundation, one presumes there is a reason for overriding these methods just so they can call existing primitives...? Is this merely a stop-gap until NSDictionary supports key-value coding more fully?

In what sense is this a stop-gap, and in what sense does NSDictionary not support KVC -- insofar as it makes sense for it to do so as a generic data-bearing object?

mmalc
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: Weird behavior in NSMutableDictionary (From: Harilaos Skiadas <email@hidden>)
 >Re: Weird behavior in NSMutableDictionary (From: Jeremy Dronfield <email@hidden>)
 >Re: Weird behavior in NSMutableDictionary (From: Steven Kramer <email@hidden>)
 >Key-value coding and dictionaries (was Re: Weird behavior in NSMutableDictionary) (From: Jeremy Dronfield <email@hidden>)

  • Prev by Date: Re: Using bindings across frameworks
  • Next by Date: Re: Weird behavior in NSMutableDictionary
  • Previous by thread: Key-value coding and dictionaries (was Re: Weird behavior in NSMutableDictionary)
  • Next by thread: Re: Weird behavior in NSMutableDictionary
  • Index(es):
    • Date
    • Thread