• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: core-data crash on save.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >core-data crash on save. (From: John Clayton <email@hidden>)
 >Re: core-data crash on save. (From: Quincey Morris <email@hidden>)
 >Re: core-data crash on save. (From: John Clayton <email@hidden>)

  • Prev by Date: Re: SOLVED Re: NSAttributedString rendering bugs when rendered with Cocoa Text (rdar://6379047)
  • Next by Date: Can 2 nib share a same custom class instance?
  • Previous by thread: Re: core-data crash on save.
  • Next by thread: Re: core-data crash on save.
  • Index(es):
    • Date
    • Thread