• 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
Mixing TableView Bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Mixing TableView Bindings


  • Subject: Mixing TableView Bindings
  • From: Joe <email@hidden>
  • Date: Sun, 7 Feb 2010 07:33:15 -0700

>
>> Since the array controller's "object controller" can be set to a class or to an entity but not both, I don't see how managed and unmanaged data can be mixed.
>
> The short answer is: "Just do it".  I do it all the time.  As long as the object is KVC compliant, it will work.
>
> The long answer: From what I can tell, the only time that entity/class mode jazz matters is when you add new objects.  A managed object with regular instance variables and/or derived properties is still a managed object.  Therefore, you should continue to use Entity mode.
>
> All that the array controller cares about is KVC compliance.  You're not mixing anything.  You're not even doing anything extra-ordinary.

OK, I'll take your word for it that it works. That is what I wanted to know, is it possible. I had tried subclassing NSManagedObject and putting regular instance variables in as you you indicated, but I get a similar error with the regular instance bindings when both the core data attributes and regular instances are bound. Something about not being able to get a Boolean from a class for the checkbox column. For a regular instance NSString the actual string doesn't show, but some sort of a descriptor for it is displayed instead.

I'll dig at it some more, must have something not right. But now I know it is not wasted effort._______________________________________________

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: Strange Behavior
  • Next by Date: Re: Uncaught exceptions not terminating my app
  • Previous by thread: Re: Mixing TableView Bindings
  • Next by thread: SourceView example
  • Index(es):
    • Date
    • Thread