core data + undo + to-many relationship
core data + undo + to-many relationship
- Subject: core data + undo + to-many relationship
- From: John Clayton <email@hidden>
- Date: Sun, 07 Dec 2008 12:42:33 +0100
Hi everyone
In a core-data model I have a 'layer' which contains a to-many
relationship to a set of 'effects'. When I add an effect, everything
is working well.
When I use Ctrl-Z to have the undo manager undo the addition of the
effect, then none of my custom accessors are fired (so my GUI doesn't
react) - although the Effect instance faults and is deallocated (as I
can see from my logging).
I thought implementing the accessors: addEffectObject: /
removeEffectObject: and the set variations addEffects: /
removeEffects: on my Layer core-data class was enough to get the undo
management to work in this case - or did I misread the core-data docs?
Any hints / tips appreciated.
Thanks
--
John Clayton
Skype: johncclayton
_______________________________________________
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