Skip to content

Commit

Permalink
Correction compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
gcasa committed Aug 21, 2024
1 parent 068684d commit 8ed8754
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions Source/NSTableView.m
Original file line number Diff line number Diff line change
Expand Up @@ -6832,17 +6832,24 @@ - (void) _setObjectValue: (id)value
forTableColumn: (NSTableColumn *)tb
row: (NSInteger) index
{
NSString *keyPath = [tb _keyPathForValueBinding];
if (keyPath != nil)
GSKeyValueBinding *theBinding;

theBinding = [GSKeyValueBinding getBinding: NSValueBinding
forObject: tb];
if (theBinding != nil)
{
NSArray *items = [[theBinding observedObject] arrangedObjects];
if (items != nil)
{
id obj = [items objectAtIndex: index];

if (obj != nil)
NSString *keyPath = [tb _keyPathForValueBinding];
if (keyPath != nil)
{
[obj setValue: value forKeyPath: keyPath];
id obj = [items objectAtIndex: index];

if (obj != nil)
{
[obj setValue: value forKeyPath: keyPath];
}
}
}
}
Expand Down

0 comments on commit 8ed8754

Please sign in to comment.