- Inherits From:
- NSObject
- Declared In:
- RTMasterDetailDataSource.h
- - masterDataSource
- - setMasterDataSource:
- - database
- - setDatabase:
- - table
- - setTable:
- - tableView
- - setTableView:
- - isToMany
- - setIsToMany:
- - addRemoveColumns
- - setAddRemoveColumns:
- - updateColumnTitles
- - setUpdateColumnTitles:
- - editable
- - setEditable:
- - keyMap
- - setKeyMap:
- - masterColumnNames
- - insertRow:
- - deleteSelectedRows:
- (BOOL)addRemoveColumns
Returns YES if all the columns of the NSTableView should be replaced with ones for each column in the detail result set.
- (id <RTSQLDatabase>)database
Returns the database used by this data source.
- (IBAction)deleteSelectedRows:(id)sender
Marks the selected rows for deletion when save: is called on the rowEditor for the master data source
- (BOOL)editable
Returns YES if the detail rows are editable.
- (IBAction)insertRow:(id)sender
inserts a new row with default values including the link back to the master table.
- (BOOL)isToMany
Returns YES if there can be more than one detail row for each master row.
- (NSDictionary*)keyMap
Returns a NSDictionary whose keys are master column names and the objects are the matching detail table column names.
- (NSArray*)masterColumnNames
returns array with the names of columns used from the masterDataSource.
- (RTEditableDataSource *)masterDataSource
Returns the RTEditableDataSource whose current row will be the master record.
- (void)setAddRemoveColumns:(BOOL)addRemove
Set to YES if all the columns of the NSTableView should be replaced with ones for each column in the detail result set.
- (void)setDatabase:(id <RTSQLDatabase>)inDatabase
Sets the database used by this data source.
- (void)setEditable:(BOOL)edit
Sets if the detail rows are editable.
- (void)setIsToMany:(BOOL)toMany
Sets if there can be more than one detail row for each master row.
- (void)setKeyMap:(NSDictionary*)dict
dict should be a NSDictionary whose keys are master column names and the objects are the matching detail table column names. These columns will be used to fetch the matching detail rows for each master row.
- (void)setMasterDataSource:(RTEditableDataSource *)dataSource
Sets the RTEditableDataSource whose current row will be the master record.
- (void)setTable:(id <RTSQLTable>)inTable
Sets the sql table used by this data source.
- (void)setTableView:(NSTableView*)inTableView
Sets the NSTableView this object is the data source for.
- (void)setUpdateColumnTitles:(BOOL)update
Set to YES if all the titles of the columns of the NSTableView should be updated to the name of each column in the detail result set.
- (id <RTSQLTable>)table
Returns the sql table used by this data source.
- (NSTableView*)tableView
Returns the NSTableView this object is the data source for.
- (BOOL)updateColumnTitles
Returns YES if all the titles of the columns of the NSTableView should be updated to the name of each column in the detail result set.