FROM : Daniel T. Staal
DATE : Fri Aug 31 17:38:40 2007
On Fri, August 31, 2007 11:24 am, Gordon Apple said:
> Because those particular accessors appear to be specific to the mentioned
> classes. If they are going to try to use them, their documents should
> clue you in and at least provide the reference you guys sent. (Ok, the
> documents headers do vaguely reference the Key-Value Coding Guide, along
> with a few other encyclopedic references.)
They aren't specific to those classes. Those classes are often a
convinent way to store and manipulate data that will be shown using those
accessors, but they aren't the only way by a long shot.
NSArray (and the other NSSet sub-classes and addon classes) is simply a
data-store class. How you use it in your program is up to you.
Key-Value-Coding is _one_ way of enabling simple communication between
objects in your program. Note that I said 'communication': it is about
getting data from one place to another in your program, and it doesn't
care how the data is stored or generated. It just helps keep track of it.
Data storage and data communication are only related because they both
talk about data. Often they are used together (because after or before
communicating data you want to store it), but they don't need to be.
Daniel T. Staal
---------------------------------------------------------------
This email copyright the author. Unless otherwise noted, you
are expressly allowed to retransmit, quote, or otherwise use
the contents for non-commercial purposes. This copyright will
expire 5 years after the author's death, or in 30 years,
whichever is longer, unless such a period is in excess of
local copyright law.
---------------------------------------------------------------
DATE : Fri Aug 31 17:38:40 2007
On Fri, August 31, 2007 11:24 am, Gordon Apple said:
> Because those particular accessors appear to be specific to the mentioned
> classes. If they are going to try to use them, their documents should
> clue you in and at least provide the reference you guys sent. (Ok, the
> documents headers do vaguely reference the Key-Value Coding Guide, along
> with a few other encyclopedic references.)
They aren't specific to those classes. Those classes are often a
convinent way to store and manipulate data that will be shown using those
accessors, but they aren't the only way by a long shot.
NSArray (and the other NSSet sub-classes and addon classes) is simply a
data-store class. How you use it in your program is up to you.
Key-Value-Coding is _one_ way of enabling simple communication between
objects in your program. Note that I said 'communication': it is about
getting data from one place to another in your program, and it doesn't
care how the data is stored or generated. It just helps keep track of it.
Data storage and data communication are only related because they both
talk about data. Often they are used together (because after or before
communicating data you want to store it), but they don't need to be.
Daniel T. Staal
---------------------------------------------------------------
This email copyright the author. Unless otherwise noted, you
are expressly allowed to retransmit, quote, or otherwise use
the contents for non-commercial purposes. This copyright will
expire 5 years after the author's death, or in 30 years,
whichever is longer, unless such a period is in excess of
local copyright law.
---------------------------------------------------------------
| Related mails | Author | Date |
|---|---|---|
| Gordon Apple | Aug 31, 00:09 | |
| Shawn Erickson | Aug 31, 00:49 | |
| mmalc crawford | Aug 31, 00:49 | |
| Gordon Apple | Aug 31, 04:06 | |
| Erik Buck | Aug 31, 05:35 | |
| Gordon Apple | Aug 31, 17:24 | |
| Daniel T. Staal | Aug 31, 17:38 | |
| mmalc crawford | Aug 31, 18:21 |






Cocoa mail archive

