0

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

eonil
  • 83,476
  • 81
  • 317
  • 516

1 Answers1

3

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.

Chuck
  • 234,037
  • 30
  • 302
  • 389