mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 12:00:52 +00:00
Select cells in matrix when unarchiving
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6619 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
9911494d9b
commit
48b0e2e362
2 changed files with 13 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
|||
2000-05-24 Georg Fleischmann <georg@vhf.de>
|
||||
|
||||
* gui/Model/GMAppKit.m
|
||||
([NSScrollView(GMArchiverMethods) -initWithModelUnarchiver:]):
|
||||
select selected cells in matrix too
|
||||
|
||||
2000-05-20 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Headers/gnustep/gui/NSTextView.h:
|
||||
|
|
|
@ -436,8 +436,13 @@ void __dummy_GMAppKit_functionForLinking() {}
|
|||
nc = [unarchiver decodeIntWithName:@"numberOfColumns"];
|
||||
cell_array = [unarchiver decodeObjectWithName:@"cells"];
|
||||
[self renewRows:nr columns:nc];
|
||||
for (i = 0; (i < [cell_array count]) && (i < nr*nc); i++) {
|
||||
[self putCell:[cell_array objectAtIndex:i] atRow:i/nc column:i%nc];
|
||||
for (i = 0; (i < [cell_array count]) && (i < nr*nc); i++)
|
||||
{
|
||||
id cell = [cell_array objectAtIndex:i];
|
||||
|
||||
[self putCell:cell atRow:i/nc column:i%nc];
|
||||
if ([cell state])
|
||||
[self selectCellAtRow:i/nc column:i%nc];
|
||||
}
|
||||
|
||||
decodedDelegate = [unarchiver decodeObjectWithName:@"delegate"];
|
||||
|
|
Loading…
Reference in a new issue