mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 16:10:48 +00:00
Correction compile error
This commit is contained in:
parent
068684d6d3
commit
8ed8754b2a
1 changed files with 13 additions and 6 deletions
|
@ -6832,17 +6832,24 @@ For a more detailed explanation, -setSortDescriptors:. */
|
|||
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];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue