- (NSIndexSet *) selectedColumnIndexes and - (NSIndexSet *) selectedRowIndexes should return an autoreleased copy of the corresponding ivar. Returning a reference to the ivar leads to issues (and behavior different from Cocoa) when iterating thru the indexsets if at a time they would be being altered.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@36548 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Frank Le Grand 2013-04-18 23:06:57 +00:00
parent 03e73ef171
commit 7e9050993d

View file

@ -2885,12 +2885,12 @@ byExtendingSelection: (BOOL)flag
- (NSIndexSet *) selectedColumnIndexes
{
return _selectedColumns;
return [[_selectedColumns copy] autorelease];
}
- (NSIndexSet *) selectedRowIndexes
{
return _selectedRows;
return [[_selectedRows copy] autorelease];
}
- (void) deselectColumn: (int)columnIndex