mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 18:11:06 +00:00
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:
parent
e2d42e6420
commit
4a4b3f034a
2 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue