* Source/NSSplitView.m: Set subviews to resize when loaded from

the nib. 
	* Source/NSView.m: Partial revert of previous change.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28201 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2009-04-10 19:00:20 +00:00
parent 92efd93b0c
commit cdbc241fc0
3 changed files with 15 additions and 5 deletions

View file

@ -1,3 +1,9 @@
2009-04-10 15:00-EDT Gregory John Casamento <greg_casamento@yahoo.com>
* Source/NSSplitView.m: Set subviews to resize when loaded from
the nib.
* Source/NSView.m: Partial revert of previous change.
2009-04-10 14:27-EDT Gregory John Casamento <greg_casamento@yahoo.com>
* Source/NSView.m: Autoresize subviews since it is not pulling it

View file

@ -1201,6 +1201,9 @@ static inline NSPoint centerSizeInRect(NSSize innerSize, NSRect outerRect)
if ([aDecoder allowsKeyedCoding])
{
id subview = nil;
NSEnumerator *en = [[self subviews] objectEnumerator];
if ([aDecoder containsValueForKey: @"NSIsVertical"])
{
[self setVertical: [aDecoder decodeBoolForKey: @"NSIsVertical"]];
@ -1219,6 +1222,11 @@ static inline NSPoint centerSizeInRect(NSSize innerSize, NSRect outerRect)
_never_displayed_before = YES;
_is_pane_splitter = YES;
[self setAutoresizesSubviews: YES];
while((subview = [en nextObject]) != nil)
{
[subview setAutoresizesSubviews: YES];
}
}
else
{

View file

@ -4486,13 +4486,9 @@ static NSView* findByTag(NSView *view, int aTag, unsigned *level)
// We are lucky here, Apple use the same constants
// in the lower bits of the flags
[self setAutoresizingMask: vFlags & 0x3F];
[self setAutoresizesSubviews: YES]; // ((vFlags & 0x100) == 0x100)];
[self setAutoresizesSubviews: ((vFlags & 0x100) == 0x100)];
[self setHidden: ((vFlags & 0x80000000) == 0x80000000)];
}
else
{
[self setAutoresizesSubviews: YES]; // ((vFlags & 0x100) == 0x100)];
}
// iterate over subviews and put them into the view...
subs = [aDecoder decodeObjectForKey: @"NSSubviews"];