Model fixes to compile on OPENSTEP

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4637 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 1999-07-23 18:07:42 +00:00
parent 35da0e5297
commit 679019f7b3
3 changed files with 22 additions and 1 deletions

View file

@ -986,10 +986,12 @@ void __dummy_GMAppKit_functionForLinking() {}
[self setAutoresizingMask:
[unarchiver decodeUnsignedIntWithName:@"autoresizingMask"]];
#ifndef NeXT_GUI_LIBRARY
_rFlags.flipped_view = [self isFlipped];
_rFlags.opaque_view = [self isOpaque];
if ([sub_views count])
_rFlags.has_subviews = 1;
#endif
return self;
}
@ -1054,7 +1056,9 @@ void __dummy_GMAppKit_functionForLinking() {}
if (frameAutosaveName)
[self setFrameAutosaveName:frameAutosaveName];
#ifndef NeXT_GUI_LIBRARY
window_level = [unarchiver decodeIntWithName:@"level"];
#endif
[self setAutodisplay:[unarchiver decodeBOOLWithName:@"isAutodisplay"]];
[self setTitle:[unarchiver decodeStringWithName:@"title"]];
@ -1139,7 +1143,9 @@ void __dummy_GMAppKit_functionForLinking() {}
if (frameAutosaveName)
[self setFrameAutosaveName:frameAutosaveName];
#ifndef NeXT_GUI_LIBRARY
window_level = [unarchiver decodeIntWithName:@"level"];
#endif
[self setAutodisplay:[unarchiver decodeBOOLWithName:@"isAutodisplay"]];
[self setTitle:[unarchiver decodeStringWithName:@"title"]];
@ -1225,7 +1231,9 @@ void __dummy_GMAppKit_functionForLinking() {}
styleMask:styleMask backing:backingType defer:YES]
autorelease];
NSDebugLLog(@"NSSavePanel", @"NSSavePanel +createObjectForModelUnarchiver");
#if GNU_GUI_LIBRARY
NSDebugLLog(@"NSSavePanel", @"NSSavePanel +createObjectForModelUnarchiver");
#endif
return panel;
}
@ -1242,7 +1250,9 @@ void __dummy_GMAppKit_functionForLinking() {}
if (frameAutosaveName)
[self setFrameAutosaveName:frameAutosaveName];
#ifndef NeXT_GUI_LIBRARY
window_level = [unarchiver decodeIntWithName:@"level"];
#endif
[self setAutodisplay:[unarchiver decodeBOOLWithName:@"isAutodisplay"]];
[self setTitle:[unarchiver decodeStringWithName:@"title"]];

View file

@ -720,7 +720,9 @@ static NSMutableDictionary* classToAliasMappings = nil;
decodeAsName = [classToAliasMappings objectForKey: className];
if ( decodeAsName )
{
#if GNU_GUI_LIBRARY
NSDebugLLog(@"GMArchiver", @"%@ to be decoded as %@", className, decodeAsName);
#endif
className = decodeAsName;
}
class = NSClassFromString(className);

View file

@ -31,6 +31,15 @@
#include "AppKit/IMCustomObject.h"
#include "IMConnectors.h"
#ifndef GNUSTEP_BASE_LIBRARY
/* Define here so we can compile on OPENSTEP and MacOSX.
although this function will never be used there */
BOOL
GSSetInstanceVariable(id obj, NSString *iVarName, const void *data)
{
}
#endif
@implementation IMConnector
- (void)encodeWithModelArchiver:(GMArchiver*)archiver