mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-25 07:41:11 +00:00
- (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:
parent
03e73ef171
commit
7e9050993d
1 changed files with 2 additions and 2 deletions
|
@ -2885,12 +2885,12 @@ byExtendingSelection: (BOOL)flag
|
||||||
|
|
||||||
- (NSIndexSet *) selectedColumnIndexes
|
- (NSIndexSet *) selectedColumnIndexes
|
||||||
{
|
{
|
||||||
return _selectedColumns;
|
return [[_selectedColumns copy] autorelease];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (NSIndexSet *) selectedRowIndexes
|
- (NSIndexSet *) selectedRowIndexes
|
||||||
{
|
{
|
||||||
return _selectedRows;
|
return [[_selectedRows copy] autorelease];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) deselectColumn: (int)columnIndex
|
- (void) deselectColumn: (int)columnIndex
|
||||||
|
|
Loading…
Reference in a new issue