Search code examples
cocoacocoa-touchioskey-value-observing

What's the most *simple* way to implement a plain data object which conforms key-value-observing?


What's the most simple way to implement a plain data object which conforms key-value-observing?


Solution

  • Make an class with properties for its plain value attributes and KVC-compliant collection accessors for collections. Foundation magic will take care of the notifications for a simple object like that.