Fix XIB loading bug reported by Julian Mayer as bug #34454.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33931 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fredkiefer 2011-10-03 12:48:15 +00:00
parent db54238627
commit cab517b510
4 changed files with 56 additions and 3 deletions

View file

@ -4697,8 +4697,8 @@ static NSView* findByTag(NSView *view, int aTag, unsigned *level)
NSInternalInconsistencyException);
NSAssert([sub window] == nil,
NSInternalInconsistencyException);
NSAssert([sub superview] == nil,
NSInternalInconsistencyException);
NSAssert([sub superview] == nil,
NSInternalInconsistencyException);
[sub _viewWillMoveToWindow: _window];
[sub _viewWillMoveToSuperview: self];
[sub setNextResponder: self];
@ -4712,7 +4712,7 @@ static NSView* findByTag(NSView *view, int aTag, unsigned *level)
}
// the superview...
[aDecoder decodeObjectForKey: @"NSSuperview"];
//[aDecoder decodeObjectForKey: @"NSSuperview"];
}
else
{