mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-14 10:43:50 +00:00
Make table column internal bindings support methods private.
This commit is contained in:
1 parent
9a0cf2b37d
commit
76400ecca9
3 files changed
+11
-8
No files matched your search
@@ -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],
|
||||
|
||||
@@ -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];
|
||||
|
||||
@@ -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];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user