• 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
Handling observing CoreData undo's
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Handling observing CoreData undo's


  • Subject: Handling observing CoreData undo's
  • From: John Timmer <email@hidden>
  • Date: Wed, 01 Jun 2005 15:25:55 -0400

I'm running into a related problem to the one I had earlier.  Core Data
objects don't like to have anything manually observing their values when
they're removed by an Undo command that reverses their creation.  Mostly, I
can work around this.

The place I'm having a problem is where I have a window that shows a
detailed view of an object.  If the window's open when the user undo's the
creation of that specific object, I'd like it to close (otherwise,
everything in it just displays nil values).  Unfortunately, if I observe an
object in it to see when that gets set to nil, I get the exception raised
when manually observing an "undone" object, and undo-ing isn't completed,
leaving the whole managedObjectContext in an intermediate state.

Does anyone have any suggestions as to how to detect when a specific object
gets undone?

JT


_______________________________________________
This mind intentionally left blank


 _______________________________________________
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

  • Follow-Ups:
    • Re: Handling observing CoreData undo's [SOLVED]
      • From: John Timmer <email@hidden>
  • Prev by Date: Re: [OT] Codename Mac OS X 10.5
  • Next by Date: glyphWithName: broken on Tiger ?
  • Previous by thread: Core Data Drag and Drop with Tree Controller
  • Next by thread: Re: Handling observing CoreData undo's [SOLVED]
  • Index(es):
    • Date
    • Thread