• 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: Why does Core Data retain an object when one of that object's attributes is changed?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why does Core Data retain an object when one of that object's attributes is changed?


  • Subject: Re: Why does Core Data retain an object when one of that object's attributes is changed?
  • From: Marco Masser <email@hidden>
  • Date: Thu, 14 Aug 2008 21:53:00 +0200

Two words. Un Do.

But of course. Thanks.

I don't know how I could not figure that out, considering that I am disabling & enabling the undo manager and grouping actions together in other parts of my app already.

For future reference:
http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/Articles/cdMemory.html#/ /apple_ref/doc/uid/TP40001860-SW2



Temporarily disabling the undo manager:

[[moc undoManager] disableUndoRegistration];
[myObject setValue:[NSNumber numberWithBool:YES] forKey:@"myBoolAttribute"];
[moc processPendingChanges]; // Don't forget that!
[[moc undoManager] enableUndoRegistration];



Permanently disabling the undo manager:

[moc setUndoManager:nil];
_______________________________________________

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: 
 >Why does Core Data retain an object when one of that object's attributes is changed? (From: Marco Masser <email@hidden>)
 >Re: Why does Core Data retain an object when one of that object's attributes is changed? (From: Ron Lue-Sang <email@hidden>)

  • Prev by Date: Re: Is this a bug, or am I hacking?
  • Next by Date: Re: Opening an external file in a external application
  • Previous by thread: Re: Why does Core Data retain an object when one of that object's attributes is changed?
  • Next by thread: Threading problem using AsyncSocket
  • Index(es):
    • Date
    • Thread