Re: NSArrayController and multiple Entities
Re: NSArrayController and multiple Entities
- Subject: Re: NSArrayController and multiple Entities
- From: Quincey Morris <email@hidden>
- Date: Tue, 25 Mar 2014 21:36:26 -0700
On Mar 25, 2014, at 21:28 , Rick Mann <email@hidden> wrote:
> I think it only started complaining when I checked "Prepares Content," but it didn't seem to work at all until I did that.
It does a fetch for you when it “prepares content”, and I guess it needs the class for that too. Can’t you just specify NSManagedObject?
> If I add new objects to Core Data, must it be done via the controller, or will it pick all the new ones up in the NSManagedObjectContext?
No, it’s all about KVO. Provided you add objects to the relationship property KVO-compliantly (and Core Data properties are KVO compliant), the array controller will see the change.
_______________________________________________
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