Tables showing different kind of core data entities
Tables showing different kind of core data entities
- Subject: Tables showing different kind of core data entities
- From: Matteo Rossi <email@hidden>
- Date: Thu, 7 Jul 2005 00:33:47 +0200
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 ?
Matteo Rossi
_______________________________________________
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