Re: NSArrayController + KVO + Core Data Question
Re: NSArrayController + KVO + Core Data Question
- Subject: Re: NSArrayController + KVO + Core Data Question
- From: Ajay Sabhaney <email@hidden>
- Date: Mon, 23 Aug 2010 03:59:08 -0600
> Try using a technique similar to the Department/Employees Core Data tutorial in the documentation. That is, you can have a singleton object of a new entity, (say, ItemSet), which has a to-many relationship "items" to all of the Item objects. Bind the NSArrayController's content to the "items" property of the ItemSet object, and I think you'll find that arrangedObjects will give you the insert/delete notifications you want.
Yeah, I just removed the array controller and used an array. I observe the array and you're correct, it works well - I am able to get the insert/delete notifications intended.
Thank you very much indeed.
> NSArrayController has no functionality related to loading, saving, undo or redo. It can fetch objects from the store for you, and it can sometimes create managed objects for you. But NSArrayController is in no way *part of* Core Data.
What I meant by this is how the managed object context ties in with NSArrayController quite easily...
_______________________________________________
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