Skip to content

Commit

Permalink
Use better variable name for value key
Browse files Browse the repository at this point in the history
  • Loading branch information
gcasa committed Oct 19, 2024
1 parent 5fd4ff0 commit 56d6fa0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Source/NSBrowser.m
Original file line number Diff line number Diff line change
Expand Up @@ -3537,7 +3537,7 @@ - (void) _performLoadOfColumn: (NSInteger)column
if (childrenKeyPath != nil)
{
NSString *leafKeyPath = [tc leafKeyPathForNode: item];
NSString *keyPath = [self _keyPathForValueBinding];
NSString *valueKeyPath = [self _keyPathForValueBinding];

// Iterate over the children for the item....
for (i = 0; i < rows; i++)
Expand All @@ -3554,9 +3554,9 @@ - (void) _performLoadOfColumn: (NSInteger)column

// If a content values binding is present, it uses that key path,
// but if one isn't it uses the description... per documentation.
if (keyPath != nil)
if (valueKeyPath != nil)
{
val = [child valueForKeyPath: keyPath];
val = [child valueForKeyPath: valueKeyPath];
}
else
{
Expand Down

0 comments on commit 56d6fa0

Please sign in to comment.