Re: CoreData and arrays owned by arrays...
Re: CoreData and arrays owned by arrays...
- Subject: Re: CoreData and arrays owned by arrays...
- From: SA Dev <email@hidden>
- Date: Wed, 18 May 2005 06:09:32 -0400
I'm not sure if this might be the problem, but ... are you binding
to your NSArrayController's contentArray or are you using the
mutableSet binding? For Core Data to-many relationships, you have to
use the mutableSet binding since to-many relationships are
represented by sets, not arrays.
On May 18, 2005, at 2:46 AM, Lee Morgan wrote:
On May 17, 2005, at 11:21 PM, Lee Morgan wrote:
So you see, what I'm needing is the segregation of sub item arrays
per master item (or at least a GUI segregation). Then the ability
to have a pop up menu cell show it's corresponding master item's
sub item's names. With the selected sub item object bound to the
masterArray.properties.selectedSubItem so that I know which one
the user has selected at any given time.
To try and clear that up a little better...
As I said, my CoreData Model has a "master item" entity that has a
to-many relationship to a "sub item" entity. The sub item entity in
turn has a to-one relationship to the master item entity.
This creates the 'array owned by array' style I was using before
(well at least it does once the relationships are set as needed,
but thats beside the point).
What I'm looking to do is display a table which has a list of
master items (got this part working). Within this table there is a
pop up menu item column, which it's contentValues *should* be bound
to something like this...
masterListArrayController.arrangedObjects.subItems.displayName
and it's selected object *should* be bound to something along the
lines of this...
masterListArrayController.arrangedObjects.selectedSubItem
I say *should* because I can't find any way to bind this
relationship as needed.
Setting it as stated gives the following error:
[<_NSFaultingMutableSet 0x3e5a60>
addObserver:forKeyPath:options:context:] is not supported. Key
path: name
- lee
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40silentalcove.net
This email sent to email@hidden
_______________________________________________
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