• 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: Tables showing different kind of core data entities
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tables showing different kind of core data entities


  • Subject: Re: Tables showing different kind of core data entities
  • From: mmalcolm crawford <email@hidden>
  • Date: Wed, 6 Jul 2005 15:42:23 -0700


On Jul 6, 2005, at 3:33 PM, Matteo Rossi wrote:

Let's suppose I define an abstract entity called Shape with one attribute called area.
Next I create two derived classes: Rectangle and Circle; the first has two attributes wifth and height and the second has one attribute, radius.
I implement the calculation of area for each entity assigning them to two different classes CRectangle and CCircle derived from NSManagedObject.
Here comes the problem: I want to display all the entities I create (both rectangles or circles) in a single table with two columns: one for a counter and a second for areas.
How can I do this ? I can bind the table's columns to a rectangle or circle array controller but If I want to display both ?



Set the entity for a single array controller to Shape.

mmalc

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Tables showing different kind of core data entities (From: Matteo Rossi <email@hidden>)

  • Prev by Date: Updating a _loaded_ Preference Pane
  • Next by Date: Re: Sync Services
  • Previous by thread: Tables showing different kind of core data entities
  • Next by thread: Updating a _loaded_ Preference Pane
  • Index(es):
    • Date
    • Thread