mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 20:40:47 +00:00
Fixed NSBox archiving/dearchiving
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12576 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
415e49b24b
commit
6516c9ada9
1 changed files with 9 additions and 0 deletions
|
@ -128,6 +128,15 @@ void __dummy_GMAppKit_functionForLinking() {}
|
||||||
|
|
||||||
@implementation NSBox (GMArchiverMethods)
|
@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
|
- (void)encodeWithModelArchiver:(GMArchiver*)archiver
|
||||||
{
|
{
|
||||||
[super encodeWithModelArchiver:archiver];
|
[super encodeWithModelArchiver:archiver];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue