␡
- Key-Value Coding
- The Model
- The Implementation
- What If
- Conclusion
< Back
Page 5 of 5
Like this article? We recommend
Conclusion
In this article, I dipped a toe into the incredible power and flexibility of Key-Value Coding by combining it with Core Data and produced a very simple way to store document-level parameters directly in the Core Data store transparently.
This example can be extended in a number of ways. One thing that is obvious is that a large number of nils could potentially be stored unnecessarily in the persistent store. To solve this, the set method should check for a nil value being passed in and either ignores the set if the parameter does not exist or delete the parameter from the store.
< Back
Page 5 of 5