DADataTableController
Overview
DADataTableController
is a bindings compatible class that manages DADataTable objects.
It allows to establish a full two-way data binding without having to write any "glue" code.
Like an other controllers participating in MVC pattern, DADataTableController mediates between Model
(DADataTable) and View
(NSTableView) objects.
DADataTableController
inherited from the NSArrayController
class, so it acts very similar to it.
For example, in order to bind DADataTable to the NSTableView
control, you will need to perform the following steps:
Add DADataTableController
to your nib file (using Interface Builder
).
Bind NSTableView
columns to your DADataTableController
.
Finally, you need to bind the given DADataTable to your DADataTableController
using the setTable: method of the controller.
Location
- Reference: DADataTableController.h
- Namespace: DataAbstract
- Ancestry: NSArrayController | DADataTableController
Properties
table nonatomic retain
Represents the DADataTable instance we want to manage by the given controller.
@property (nonatomic, retain) DADataTable *table