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

Re: Handling observing CoreData undo's [SOLVED]


  • Subject: Re: Handling observing CoreData undo's [SOLVED]
  • From: John Timmer <email@hidden>
  • Date: Wed, 01 Jun 2005 15:43:29 -0400

Never mind - the ManagedObjectContext's notification seems to do the job
without an exception.  Sorry for the noise.

JT


> 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?
>


 _______________________________________________
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

References: 
 >Handling observing CoreData undo's (From: John Timmer <email@hidden>)

  • Prev by Date: glyphWithName: broken on Tiger ?
  • Next by Date: Re: Bindings Basics: selections
  • Previous by thread: Handling observing CoreData undo's
  • Next by thread: glyphWithName: broken on Tiger ?
  • Index(es):
    • Date
    • Thread