Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

11.5. Summary

KVC- and NSPredicate-based logic is a powerful way to query, filter, analyze, and access data from an in-memory object-based data model. And this is just the tip of the iceberg of KVC’s true power.

The real power of KVC begins to shine when you realize the level of abstraction it can provide. When we discussed key-path operators such as @min, @max, and @distinctUnionOfObjects, you may have noticed that you expressed, in a simple string format, what operation was required, then left it up to the framework to determine how to iterate over the data model and any memory management issues or temporary data structures required to produce the results.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint