Re: activating Delete menu item through binding
Re: activating Delete menu item through binding
- Subject: Re: activating Delete menu item through binding
- From: Koen van der Drift <email@hidden>
- Date: Sun, 22 Apr 2012 09:59:45 -0400
On Apr 21, 2012, at 11:01 PM, Quincey Morris wrote:
> It's not clear what went wrong with '[employeeController remove: nil]', but that's a completely separate problem. For example, if you left the array controller in Class mode rather than Entity mode, 'remove:' won't update Core Data properly.
It is set to Entity mode
> Also, take a look at the class reference documentation for NSArrayController (for the 'removeObject:' method) for a discussion of how to configure the array controller's deletion behavior for Core Data.
Yes I did read that, but the suggestion there to enable "Deletes Objects On Remove" also didn't work. I suspect what is happening is that I also maintain an NSTreeController to control the source list on the left side, and that is the controller that is bound to the MOC. The content set of myArrayController is bound to myTreeController.
In any event, removing the objects from the MOC directly works seamlessly, it also updates the source list, etc.
- Koen.
_______________________________________________
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