* Headers/Additions/GNUstepGUI/GSNibLoading.h: Added methods to header

which were added during refactoring.
        * Source/GSNibLoading.m: Corrections to NSCustomView, refactoring.
        Changes to initialization logic to call awakeFromNib.
        * Source/NSBundleAdditions.m: Cleanup to move code to the nib loading
        code.
        * Source/NSClipView.m: Added assertion to guarantee that no
        NSCustomView is unarchived at time of initWithCoder: being called.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27298 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
gcasa 2008-12-15 23:34:09 +00:00
parent 90cc29e4e5
commit a7a1beee9a
5 changed files with 374 additions and 277 deletions

View file

@ -28,6 +28,7 @@
#include "config.h"
#include <Foundation/NSNotification.h>
#include <Foundation/NSException.h>
#include "AppKit/NSClipView.h"
#include "AppKit/NSCursor.h"
@ -38,6 +39,8 @@
#include "AppKit/NSWindow.h"
#include "AppKit/PSOperators.h"
#include <GNUstepGUI/GSNibLoading.h>
#include <math.h>
DEFINE_RINT_IF_MISSING
@ -789,6 +792,9 @@ static inline NSRect integralRect (NSRect rect, NSView *view)
if ([[self subviews] count] > 0)
{
id document = [aDecoder decodeObjectForKey: @"NSDocView"];
NSAssert([document class] != [NSCustomView class],
NSInvalidArgumentException);
NSRect rect = [document frame];
rect.origin = NSZeroPoint;
[document setFrame: rect];