- (int)numberOfColumnsInWorksheet:(RRSSWorksheet*)worksheet;
This method is called by the worksheet to determine the number of columns it needs to create to support the data source. Note that if autoresizing is enabled, then the number of columns may increase beyond this number
Result: the data source object must return an integer with the number of columns needed in the worksheet
Name Description worksheet the requesting worksheet
- (int)numberOfRowsInWorksheet:(RRSSWorksheet*)worksheet;
This method is called by the worksheet to determine the number of rows it needs to create to support the data source. Note that if autoresizing is enabled, then the number of rows may increase beyond this number
Result: the data source object must return an integer with the number of rows needed in the worksheet
Name Description worksheet the requesting worksheet
- (BOOL)worksheet:(RRSSWorksheet*)worksheet acceptDrop:(id)info row:(int)row column:(int)col dropOperation:(NSTableViewDropOperation)op;
- (NSString*)worksheet:(RRSSWorksheet*)worksheet headerLabelForColumn:(int)col;
this method is used to ask the datasource for the label for the header of specific columns. If this method is not implemented by the datasource, the worksheet will use default header labels
Result: the data source must return an NSString holding the label for the header.
Name Description row this is an integer holding the row number of the header
- (NSString*)worksheet:(RRSSWorksheet*)worksheet headerLabelForRow:(int)row;
this method is used to ask the datasource for the label for the header of specific rows. If this method is not implemented by the datasource, the worksheet will use default header labels
Result: the data source must return an NSString holding the label for the header.
Name Description row this is an integer holding the row number of the header
- (id)worksheet:(RRSSWorksheet*)worksheet objectValueForRow:(unsigned int)row column:(int)col;
This method is called by the worksheet on the data source to determine the value of a cell. The current implementation expects an NSString object from the data source
Result: the data source should return the value of the cell at the given row and column. The current implementation expects an NSString object.
Name Description worksheet the worksheet requesting the row/column value row the row of the needed object value col the column of the needed object value
- (void)worksheet:(RRSSWorksheet*)worksheet setHeaderLabel:(NSString*)label forColumn:(int)column;
this method is used by the worksheet to tell its datasource when the label for a header has changed
Name Description worksheet the calling worksheet label the new header label column the header's column index
- (void)worksheet:(RRSSWorksheet*)worksheet setHeaderLabel:(NSString*)label forRow:(int)row;
this method is used by the worksheet to tell its datasource when the label for a header has changed
Name Description worksheet the calling worksheet label the new header label row the header's row index
- (void)worksheet:(RRSSWorksheet*)worksheet setObjectValue:(id)object forRow:(int)row column:(int)col;
this method is used by the worksheet to tell its datasource when the value of a cell has changed
Name Description worksheet the calling worksheet object the new object for the cell row the cell's row column the cell's column
- (NSDragOperation)worksheet:(RRSSWorksheet*)worksheet validateDrop:(id)info proposedRow:(int)row column:(int)col proposedDropOperation:(NSTableViewDropOperation)op;
- (BOOL)worksheet:(RRSSWorksheet*)worksheet writeCells:(NSArray*)cells toPasteboard:(NSPasteboard*)pboard;
(Last Updated 4/30/2002)