mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-29 19:27:40 +00:00
Fix storing of splitter locations
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29072 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
8a7cfaf918
commit
28e25fe2db
2 changed files with 15 additions and 5 deletions
|
@ -1,6 +1,12 @@
|
|||
2009-11-27 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSSplitView.m: Correct the storing of the splitter locations
|
||||
in the defaults system (the autosave mechanism) ... was using NSNumber
|
||||
keys which was causing this to fail.
|
||||
|
||||
2009-11-26 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSTableView.m: ([-noteNumberOfRowsChanged]) fid to redraw
|
||||
* Source/NSTableView.m: ([-noteNumberOfRowsChanged]) fixed to redraw
|
||||
the rectangle in the superview if the receiver shrinks.
|
||||
|
||||
2009-11-25 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
|
|
@ -137,6 +137,7 @@ static NSNotificationCenter *nc = nil;
|
|||
|
||||
for (i = 0; i < (count - 1); i++)
|
||||
{
|
||||
NSString *key;
|
||||
double proportion;
|
||||
|
||||
if (_isVertical == NO)
|
||||
|
@ -147,9 +148,9 @@ static NSNotificationCenter *nc = nil;
|
|||
{
|
||||
proportion = (NSWidth(frames[i]))/oldTotal;
|
||||
}
|
||||
|
||||
key = [NSString stringWithFormat: @"%u", i];
|
||||
[config setObject: [NSNumber numberWithDouble: proportion]
|
||||
forKey: [NSNumber numberWithInt: i]];
|
||||
forKey: key];
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -726,7 +727,7 @@ static NSNotificationCenter *nc = nil;
|
|||
{
|
||||
// If the splitview was moved, we resize the subviews
|
||||
if ((_isVertical == YES && p.x != op.x)
|
||||
|| (_isVertical == NO && p.y != op.y))
|
||||
|| (_isVertical == NO && p.y != op.y))
|
||||
{
|
||||
[self _resize: v withOldSplitView: prev withFrame: r fromPoint: p
|
||||
withBigRect: bigRect divHorizontal: divHorizontal
|
||||
|
@ -798,8 +799,11 @@ static NSNotificationCenter *nc = nil;
|
|||
* remaining available space. */
|
||||
for (i = 0; i < (count - 1); i++)
|
||||
{
|
||||
NSNumber *proportion = [config objectForKey: [NSNumber numberWithInt: i]];
|
||||
NSNumber *proportion;
|
||||
NSString *key;
|
||||
|
||||
key = [NSString stringWithFormat: @"%u", i];
|
||||
proportion = [config objectForKey: key];
|
||||
if (proportion == nil)
|
||||
{
|
||||
/* If any autosaved proportion is missing, do not do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue