From 6516c9ada9310bc9bfedbbdb87f92bb7d9823d15 Mon Sep 17 00:00:00 2001 From: nico Date: Wed, 20 Feb 2002 12:37:31 +0000 Subject: [PATCH] Fixed NSBox archiving/dearchiving git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12576 72102866-910b-0410-8b05-ffd578937521 --- Model/GMAppKit.m | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Model/GMAppKit.m b/Model/GMAppKit.m index 6555580c9..916099e14 100644 --- a/Model/GMAppKit.m +++ b/Model/GMAppKit.m @@ -128,6 +128,15 @@ void __dummy_GMAppKit_functionForLinking() {} @implementation NSBox (GMArchiverMethods) +/* NSBox is very special because it always has a single subview, which + is the contentview, and it overrides addSubview: to add subviews to + the contentview. Make sure we can manage this case properly and + portably. */ +- (NSArray *)subviewsForModel +{ + return [NSArray array]; +} + - (void)encodeWithModelArchiver:(GMArchiver*)archiver { [super encodeWithModelArchiver:archiver];