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

Chapter 11. Key-Value Coding and NSPredi... > Making your objects KVC-compliant

11.1. Making your objects KVC-compliant

KVC is all about conventions. In order for KVC to determine which setter or getter message should be sent to access a given key, you must conform to a specific set of rules. If you attempt to use a non-KVC-compliant object with KVC, you’ll get an exception similar to the following at runtime:

[<CTRentalProperty 0x1322> valueForUndefinedKey:] this class is not key value
     coding-compliant for the key age

					  


  

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
  • DownloadDownload
  • PrintPrint