• 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: Poof! Recently-saved Core Data document suddenly gets dirty
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Poof! Recently-saved Core Data document suddenly gets dirty


  • Subject: Re: Poof! Recently-saved Core Data document suddenly gets dirty
  • From: Quincey Morris <email@hidden>
  • Date: Sat, 24 Jan 2009 01:25:11 -0800

On Jan 23, 2009, at 22:44, Jerry Krinock wrote:

I realize I could probably paper over this problem by disabling undo registration during the import

The stack trace clearly shows that an undo action is being recorded, which means that some property has been changed. ("Changed" in the sense that KVO-notifications were produced, which is what the undo mechanism notices, AFAIK. The actual values of the properties are likely irrelevant.)


Core Data is fanatically correct about recording changes as undo actions, and it's really, really difficult to find out what it thinks has changed, sometimes. It's possible that the delayed-action effect on dirtiness is a deferred processPendingChanges happening. It's possible that coalescing of changes by processPendingChanges might be suppressing change notifications.

So, disabling undo at times when you don't want any undo isn't really papering over a problem. It's more of a defense against Core-Data- induced madness.

Or, given your heroic investigations, you could almost justify submitting a bug report and hoping Apple will debug the rest of the problem for you.

Or, you could turn Core Data undo off completely, and handle undo yourself. Getting undo "for free" in Core Data is a benefit only if it causes less work for you, not more.


_______________________________________________

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: 
 >Poof! Recently-saved Core Data document suddenly gets dirty (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: Knowing when a NSArrayController is ready
  • Next by Date: Re: NSNumberFormatter setFormat: in 10.3.9
  • Previous by thread: Poof! Recently-saved Core Data document suddenly gets dirty
  • Next by thread: Targetting Tiger
  • Index(es):
    • Date
    • Thread