mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-02 09:31:19 +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
dc69a8559f
commit
cb8c83af6d
2 changed files with 8 additions and 0 deletions
|
@ -37,6 +37,12 @@
|
||||||
#import <Foundation/NSException.h>
|
#import <Foundation/NSException.h>
|
||||||
#import <Foundation/NSArchiver.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>
|
#include <AppKit/GMArchiver.h>
|
||||||
|
|
||||||
@interface GMClassInfo : NSObject
|
@interface GMClassInfo : NSObject
|
||||||
|
|
|
@ -56,6 +56,7 @@ BOOL _fileOwnerDecoded = NO;
|
||||||
|
|
||||||
+ (BOOL)loadIMFile:(NSString*)path owner:(id)owner bundle:(NSBundle*)mainBundle
|
+ (BOOL)loadIMFile:(NSString*)path owner:(id)owner bundle:(NSBundle*)mainBundle
|
||||||
{
|
{
|
||||||
|
#ifdef GNU_GUI_LIBRARY
|
||||||
NSString* resourcePath = [mainBundle resourcePath];
|
NSString* resourcePath = [mainBundle resourcePath];
|
||||||
GMUnarchiver* unarchiver;
|
GMUnarchiver* unarchiver;
|
||||||
id previousNibOwner = _nibOwner;
|
id previousNibOwner = _nibOwner;
|
||||||
|
@ -126,6 +127,7 @@ BOOL _fileOwnerDecoded = NO;
|
||||||
be invoked recursively. */
|
be invoked recursively. */
|
||||||
_nibOwner = previousNibOwner;
|
_nibOwner = previousNibOwner;
|
||||||
|
|
||||||
|
#endif
|
||||||
return YES;
|
return YES;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue