• 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: activating Delete menu item through binding
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >activating Delete menu item through binding (From: Koen van der Drift <email@hidden>)
 >Re: activating Delete menu item through binding (From: Quincey Morris <email@hidden>)
 >Re: activating Delete menu item through binding (From: Koen van der Drift <email@hidden>)
 >Re: activating Delete menu item through binding (From: Quincey Morris <email@hidden>)
 >Re: activating Delete menu item through binding (From: Koen van der Drift <email@hidden>)
 >Re: activating Delete menu item through binding (From: Quincey Morris <email@hidden>)
 >Re: activating Delete menu item through binding (From: Koen van der Drift <email@hidden>)
 >Re: activating Delete menu item through binding (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: NSDate value set in one method, vanishes when accessed from another
  • Next by Date: Re: Guidelines on using NSJSONSerialization
  • Previous by thread: Re: activating Delete menu item through binding
  • Next by thread: Observing frame change of a subview
  • Index(es):
    • Date
    • Thread