Changes to compile nib2gmodel

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9766 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 2001-05-03 19:30:36 +00:00
parent e2d42e6420
commit 4a4b3f034a
2 changed files with 8 additions and 0 deletions

View file

@ -37,6 +37,12 @@
#import <Foundation/NSException.h>
#import <Foundation/NSArchiver.h>
#ifndef AUTORELEASE
#define AUTORELEASE(object) [object autorelease]
#define RELEASE(object) [object release]
#define RETAIN(object) [object retain]
#endif
#include <AppKit/GMArchiver.h>
@interface GMClassInfo : NSObject

View file

@ -56,6 +56,7 @@ BOOL _fileOwnerDecoded = NO;
+ (BOOL)loadIMFile:(NSString*)path owner:(id)owner bundle:(NSBundle*)mainBundle
{
#ifdef GNU_GUI_LIBRARY
NSString* resourcePath = [mainBundle resourcePath];
GMUnarchiver* unarchiver;
id previousNibOwner = _nibOwner;
@ -126,6 +127,7 @@ BOOL _fileOwnerDecoded = NO;
be invoked recursively. */
_nibOwner = previousNibOwner;
#endif
return YES;
}