Make table column internal bindings support methods private.

This commit is contained in:
Alexander Ljungberg committed 2011-03-31 20:48:51 -04:00
1 parent 9a0cf2b37d
commit 76400ecca9
3 files changed
+11 -8

No files matched your search

+5 -2
View File
@@ -600,7 +600,7 @@ CPTableColumnUserResizingMask = 1 << 1;
/*!
@ignore
*/
- (void)prepareDataView:(CPView)aDataView forRow:(unsigned)aRow
- (void)_prepareDataView:(CPView)aDataView forRow:(unsigned)aRow
{
var bindingsDictionary = [CPBinder allBindingsForObject:self],
keys = [bindingsDictionary allKeys];
@@ -646,7 +646,10 @@ CPTableColumnUserResizingMask = 1 << 1;
}
}
- (void)reverseSetDataView:(CPView)aDataView forRow:(unsigned)aRow
/*!
@ignore
*/
- (void)_reverseSetDataView:(CPView)aDataView forRow:(unsigned)aRow
{
var bindingsDictionary = [CPBinder allBindingsForObject:self],
keys = [bindingsDictionary allKeys],
+3 -3
View File
@@ -2824,7 +2824,7 @@ Your delegate can implement this method to avoid subclassing the tableview to ad
[dataView setObjectValue:[self _objectValueForTableColumn:tableColumn row:row]];
// If the column uses content bindings, allow them to override the objectValueForTableColumn.
[tableColumn prepareDataView:dataView forRow:row];
[tableColumn _prepareDataView:dataView forRow:row];
[view addSubview:dataView];
@@ -3270,7 +3270,7 @@ Your delegate can implement this method to avoid subclassing the tableview to ad
// This gives the table column an opportunity to apply its bindings.
// It will override the value set above if there is a binding.
[tableColumn prepareDataView:dataView forRow:row];
[tableColumn _prepareDataView:dataView forRow:row];
if (isColumnSelected || [self isRowSelected:row])
[dataView setThemeState:CPThemeStateSelectedDataView];
@@ -3375,7 +3375,7 @@ Your delegate can implement this method to avoid subclassing the tableview to ad
// Allow the column binding to do a reverse set. Note that we do this even if the data source method above
// is implemented.
[sender.tableViewEditedColumnObj reverseSetDataView:sender forRow:sender.tableViewEditedRowIndex];
[sender.tableViewEditedColumnObj _reverseSetDataView:sender forRow:sender.tableViewEditedRowIndex];
if ([sender respondsToSelector:@selector(setEditable:)])
[sender setEditable:NO];
+3 -3
View File
@@ -171,11 +171,11 @@
for (var i = 0; i < [content count]; i++)
[content[i] setAccesses:0];
var testView = [DataViewTester new];
[tableColumn prepareDataView:testView forRow:0];
[tableColumn _prepareDataView:testView forRow:0];
[self assert:'1' equals:testView.lastValue];
[self assert:'objectValue' equals:testView.lastKey];
[tableColumn prepareDataView:testView forRow:1];
[tableColumn _prepareDataView:testView forRow:1];
[self assert:'3' equals:testView.lastValue];
[self assert:'objectValue' equals:testView.lastKey];
@@ -189,7 +189,7 @@
[tableColumn bind:@"value" toObject:arrayController withKeyPath:@"arrangedObjects" options:nil];
[arrayController setContent:content];
[tableColumn prepareDataView:testView forRow:1];
[tableColumn _prepareDataView:testView forRow:1];
[self assert:'old' equals:testView.lastValue];
[self assert:'objectValue' equals:testView.lastKey];
}