Mac OS X Reference Library Apple Developer
Search

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.

Attribute and To-One Relationship Compliance

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

Indexed To-Many Relationship Compliance

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

For a mutable 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:




Last updated: 2010-04-28

Did this document help you? Yes It's good, but... Not helpful...