• 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
Undo and NSArrayController and CoreData
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Undo and NSArrayController and CoreData


  • Subject: Undo and NSArrayController and CoreData
  • From: Jason Swain <email@hidden>
  • Date: Thu, 9 Mar 2006 08:49:29 +0000

I have a NSArrayController that is bound to the selection of another NSArrayController (don't think this is significant, but just in case). All works fine for user interaction, but when Undo is used, i.e. the Managed Object Model is changed underneath the NSArrayController it does not update correctly.

I have some debug code that gives me a count of the objects in the array, both through the NSArrayController and directly from the CoreData objects. The direct count is correct, and NSArrayController still has the old array of objects (before the undo). So how do I get the NSArrayController to update? I thought that this would happen automatically through the binding, but it does not. I've tried using any methods that looked remotely like they would cause the array controller to reread it's data (-fetch etc), but this does not help.


Jason _______________________________________________ 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: Undo and NSArrayController and CoreData
      • From: Miguel Sanchez <email@hidden>
  • Prev by Date: playing swf file
  • Next by Date: How to construct CIImage from NSImage? Please help.
  • Previous by thread: Re: playing swf file
  • Next by thread: Re: Undo and NSArrayController and CoreData
  • Index(es):
    • Date
    • Thread