What's the most simple way to implement a plain data object which conforms key-va开发者_开发百科lue-observing?
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.
精彩评论