Detecting Managed Object Property Change From Undo Redo
Detecting Managed Object Property Change From Undo Redo
- Subject: Detecting Managed Object Property Change From Undo Redo
- From: Richard Charles <email@hidden>
- Date: Sat, 24 Jan 2015 23:35:50 -0700
Core Data generated primitive accessors are used to get and set values from and to the managed object's private internal store. Core Data generated primitive accessors do not have change notification. If primitive accessors are present, Core Data will use them during undo and redo.
A managed object may have resources that need to be updated when a property changes. During undo and redo primitive accessors are used to change the property but because primitive accessors do not have change notification there is no way for the managed object to be notified that the property has changed.
The only solution seems to be to use custom primitive accessors that have change notification.
What am I doing wrong?
Thanks,
Richard Charles
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden