Re: core-data crash on save.
Re: core-data crash on save.
- Subject: Re: core-data crash on save.
- From: Ashley Clark <email@hidden>
- Date: Tue, 18 Nov 2008 16:08:58 -0600
On Nov 18, 2008, at 3:53 PM, John Clayton wrote:
<snip>
So, with the extra two bits of knowledge, namely:
- I have a Nullify relationship from Effect to the Layers 'effects'
set/relationship
- it works if I call processPendingChanges
does it still 'reek' to you of something being broken?
I'm a bit lost as to why I must call processPendingChanges to have
my object deleted immediately. It really does feel like I've
screwed *something*, *somewhere*. I thought the objects that I
delete would really be deleted at the end of the event loop?
You have to call processPendingChanges because you've disabled the
context's undo support. As a consequence of that, the context will now
only call processPendingChanges just before save (like it always did)
but it will not call it at the end of the event loop since it doesn't
need to generate undo operations.
If you really want undo support disabled on the context you have to be
responsible for calling processPendingChanges manually when you need
to make other parts of your program aware of the changes.
Ashley
_______________________________________________
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