Detecting changes to a specific attribute of NSManagedObject
问题 How can I detect changes to a specific attribute of an NSManagedObject ? In my Core Data data model, I have a Product entity that represents a product for sale. The Product entity has several attributes: price , sku , weight , numberInStock , etc. Whenever the price attribute of a Product changes, I need to perform a lengthy calculation. Consequently, I would like to know when the price attribute of any Product changes, [edit] even if that change comes from merging a context saved on another