* Headers/Additions/GNUstepGUI/GSNibLoading.h: Added new method

nibInstantiateWithCoder: to do the initialization normally done
        in NSView when not in IB/Gorm.
        * Source/GSNibLoading.m: Added implementation of new method and
        also re-wrote part of NSCustomView.
        * Source/NSView.m: Added an NSAssert to assure that no subview
        ever decoded is an NSCustomView.
---
Moved decoding of custom view attributes here so that it can cleanly initialize everything to ensure that the view works properly.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27281 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
gcasa 2008-12-12 07:03:48 +00:00
parent 5dfc9be420
commit a26e76582a
4 changed files with 149 additions and 66 deletions

View file

@ -74,6 +74,7 @@
#include "AppKit/PSOperators.h"
#include "GNUstepGUI/GSDisplayServer.h"
#include "GNUstepGUI/GSTrackingRect.h"
#include "GNUstepGUI/GSNibLoading.h"
#include "GSToolTips.h"
#include "GSBindingHelpers.h"
@ -4471,6 +4472,8 @@ static NSView* findByTag(NSView *view, int aTag, unsigned *level)
e = [subs objectEnumerator];
while ((sub = [e nextObject]) != nil)
{
NSAssert([sub class] != [NSCustomView class],
NSInternalInconsistencyException);
NSAssert([sub window] == nil,
NSInternalInconsistencyException);
NSAssert([sub superview] == nil,