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
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Part 3: Making maximum use of framework ... > Key-Value Coding and NSPredicate

11. Key-Value Coding and NSPredicate

This chapter covers

  • Key-Value Coding (KVC)

  • Handling nil values in KVC

  • Filtering a collection with predicates

  • Using key paths in predicate expressions


KVC is a feature of the Foundation framework that allows you to access the properties of an object using strings. To obtain the current value of an object’s property, you usually send the object an explicit getter message, as demonstrated here:


  

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