• 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
MOC NSDeletedObjectsKey notifications on undo/redo show default object values?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

MOC NSDeletedObjectsKey notifications on undo/redo show default object values?


  • Subject: MOC NSDeletedObjectsKey notifications on undo/redo show default object values?
  • From: George Orthwein <email@hidden>
  • Date: Tue, 26 Sep 2006 17:31:46 -0400

So I'm nicely using NSManagedObjectContextObjectsDidChangeNotification to track changes to my managed objects. The problem occurs when I insert an object and then undo it (or delete an object and undo/redo). The deleted object notifications show all the object attributes at their initial default values. Specifically, I'm setting a uuid string attribute in awakeFromInsert that unfortunately displays as nil in the delete notifications generated from the undo/redo.

I can probably work around this somehow but I'm wondering if there is a known solution.

(Or maybe I missed a way to set dynamic default values via the data modeler? :)

Thanks,
George
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Using Sampler
  • Next by Date: Re: NSUersDefaults and setting for a specific domain
  • Previous by thread: Re: Re: Using Sampler
  • Next by thread: Using NSUserDefaults for Other Apps' Preferences
  • Index(es):
    • Date
    • Thread