mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-03 18:00:54 +00:00
Update internal data source
This commit is contained in:
parent
48ea6692e1
commit
a7894607af
1 changed files with 3 additions and 2 deletions
|
@ -105,7 +105,7 @@ static NSDate *lastDragChange = nil;
|
||||||
NSString *_childrenKeyPath;
|
NSString *_childrenKeyPath;
|
||||||
NSString *_leafKeyPath;
|
NSString *_leafKeyPath;
|
||||||
|
|
||||||
NSMutableDictionary *_internalRepresentation;
|
NSMapTable *_internalRepresentation;
|
||||||
id _observedObject;
|
id _observedObject;
|
||||||
NSOutlineView *_outlineView;
|
NSOutlineView *_outlineView;
|
||||||
}
|
}
|
||||||
|
@ -2284,7 +2284,7 @@ Also returns the child index relative to this parent. */
|
||||||
ASSIGNCOPY(_childrenKeyPath, [tc childrenKeyPath]);
|
ASSIGNCOPY(_childrenKeyPath, [tc childrenKeyPath]);
|
||||||
ASSIGNCOPY(_countKeyPath, [tc countKeyPath]);
|
ASSIGNCOPY(_countKeyPath, [tc countKeyPath]);
|
||||||
|
|
||||||
_internalRepresentation = [[NSMutableDictionary alloc] init];
|
_internalRepresentation = RETAIN([NSMapTable weakToWeakObjectsMapTable]);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -2354,6 +2354,7 @@ Also returns the child index relative to this parent. */
|
||||||
if (_theBinding != nil)
|
if (_theBinding != nil)
|
||||||
{
|
{
|
||||||
NSArray *contentArray = (NSArray *)[_theBinding destinationValue];
|
NSArray *contentArray = (NSArray *)[_theBinding destinationValue];
|
||||||
|
[_internalRepresentation removeAllObjects];
|
||||||
[self _collectNodes: contentArray];
|
[self _collectNodes: contentArray];
|
||||||
NSLog(@"_internalRepresentation = %@", _internalRepresentation);
|
NSLog(@"_internalRepresentation = %@", _internalRepresentation);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue