I have the following models in my application.
Board
, holds a NSMutableArray propertylists
of typeList
belowList
, holds a NSArray propertycards
of type Card belowCard
, has a NSString propertyname
The relationship is thus Board --> to-many List --> to-many Card
I have a NSCollectionView based master-detail interface working. In the detail interface I have an NSTableView that I wish to populate.
Bindings are setup like so:
BoardArrayController -> bound to File's owner
- ** Model key path: boards
- ** Mode: Class
- ** Item prototype: Board View Item
ListArrayController -> bound to BoardArrayController.
- ** Controller key: selection
- ** Model key path: lists
- ** Mode: Class
- ** Item prototype: List View Item
CardArrayController -> bound to ListArrayController
- ** Controller key: selection
- ** Model key path: cards
- ** Mode: Class
The master collection view has the Content bound to BoardArrayController
** Controller key: arrangedObjects
** SelectionIndexes is also bound to BoardArrayController.
The detail collection view has the Content bound to the ListArrayController
- ** Controller key: arrangedObjects
The NSTableView's column (in the item prototype) is bound to CardArrayController
- ** Controller key: arrangedObjects
- ** Model Key Path: name
Problem
The detail interface's NSTableView is being populated with the correct number of cards for a certain list. However, the cell title is empty. I can click on the rows and see the selection, but no text unfortunately.