Re: Tables showing different kind of core data entities
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