CoreData and arrays owned by arrays...
CoreData and arrays owned by arrays...
- Subject: CoreData and arrays owned by arrays...
- From: Lee Morgan <email@hidden>
- Date: Tue, 17 May 2005 22:22:12 -0400
I'm moving my app over to CoreData (which is great by the way) but I
can't find a way to get one part to work for me.
In the past I maintained an array of master items, each master item
had an array of sub items. In my GUI I would provide a list of these
sub items by binding to each master item's array (using
arrangedObjects).
When working with CoreData I've noticed that there isn't really a
"sub array" style to the database - that is it seems like a pure flat
database...
I have a "master item" entity which contains a to-many relationship
to it's "sub item" entities. The sub items entities have a reverse
lookup (to-one relationship). This allows a sub item entity to
"belong" to a master item.
The problem I'm having is that in my GUI I have a table which shows
all master items. In this table I have a column which *should* show
all sub items of the corresponding master item. However I can't find
a proper key path to bind the table's pop up menu cell to the
arrangedObjects master items -> sub items.
I imagine this is trivial, but I just can't figure it out right now -
any help would be greatly appreciated.
Thanks,
Lee
_______________________________________________
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