• 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: NSArrayController and multiple Entities
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Write with NSFileWrapper vs. copy with NSFileManager
  • Next by Date: Re: NSArrayController and multiple Entities
  • Previous by thread: Re: NSInteger/NSUInteger Considerations (64 bit)
  • Next by thread: Re: NSArrayController and multiple Entities
  • Index(es):
    • Date
    • Thread