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:11:08 -0700
On Mar 25, 2014, at 19:57 , Rick Mann <email@hidden> wrote:
> The problem is that I have to specify an NSManagedObject subclass in IB for the NSArrayController, so it seem that I have to make a more general base class in Core Data for the objects that are selectable, is that right?
Have to specify? I don’t recall the Core Data variant of NSArrayController’s IB interface specifically, but you should only need to specify a class there (or, rather, it only matters what class you specify there) if you’re using the array controller to create new objects for you. In that case, it needs to know what class of objects to create. Otherwise, the class should be irrelevant. All that matters is that the objects at the other end of bindings through the array controller respond to the key paths you’re using in the binding.
_______________________________________________
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