< Previous PageNext Page > Hide TOC

Ensuring KVC Compliance

In order for a class to be considered KVC compliant for a specific property, it must implement the methods required for valueForKey: and setValue:forKey: to work for that property.

Contents:

Attribute and To-One Relationship Compliance
Indexed To-Many Relationship Compliance
Unordered To-Many Relationship Compliance


Attribute and To-One Relationship Compliance

For properties that are an attribute or a to-one relationship, this requires that:

Indexed To-Many Relationship Compliance

For indexed to-many relationships, KVC compliance requires that your class:

For a indexed ordered to-many relationship, KVC compliance requires that your class also:

Unordered To-Many Relationship Compliance

For unordered to-many relationships, KVC compliance requires that your class:

For a mutable unordered to-many relationship, KVC compliance requires that your class also:



< Previous PageNext Page > Hide TOC


© 2003, 2009 Apple Inc. All Rights Reserved. (Last updated: 2009-02-04)


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.