mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-02-23 19:51:00 +00:00
Fix for nib loading. Correct behavior of NSWindowTemplate when loading nibs.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@29184 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
63a656b958
commit
2806b5ba47
3 changed files with 20 additions and 0 deletions
|
@ -1,3 +1,10 @@
|
|||
2009-12-30 23:40-EST Gregory John Casamento <greg.casamento@gmail.com>
|
||||
|
||||
* Plugins/Nib/GormNibWrapperLoader.m: Remove reference to
|
||||
GSClassSwapper and replace it with NSClassSwapper.
|
||||
* Plugins/Nib/GormWindowTemplate.m: Override the
|
||||
baseWindowClass method to return GormNSWindow as appropriate.
|
||||
|
||||
2009-12-27 01:17-EST Gregory John Casamento <greg.casamento@gmail.com>
|
||||
|
||||
* Gorm.m
|
||||
|
|
|
@ -35,6 +35,8 @@
|
|||
#include "GormNibWrapperLoader.h"
|
||||
#include "GormWindowTemplate.h"
|
||||
|
||||
@class GormNSWindow;
|
||||
|
||||
@implementation GormNibWrapperLoader
|
||||
+ (NSString *) fileType
|
||||
{
|
||||
|
@ -126,6 +128,7 @@
|
|||
* handling class replacement so that standard objects understood
|
||||
* by the gui library are converted to their Gorm internal equivalents.
|
||||
*/
|
||||
|
||||
u = [[NSKeyedUnarchiver alloc] initForReadingWithData: data];
|
||||
[u setDelegate: self];
|
||||
|
||||
|
@ -138,6 +141,8 @@
|
|||
forClassName: @"NSCustomView"];
|
||||
[u setClass: [GormWindowTemplate class]
|
||||
forClassName: @"NSWindowTemplate"];
|
||||
[u setClass: [GormNSWindow class]
|
||||
forClassName: @"NSWindow"];
|
||||
|
||||
/*
|
||||
* Substitute any classes specified by the palettes...
|
||||
|
@ -316,6 +321,7 @@
|
|||
result = YES;
|
||||
}
|
||||
}
|
||||
[NSClassSwapper setIsInInterfaceBuilder: NO];
|
||||
}
|
||||
}
|
||||
NS_HANDLER
|
||||
|
|
|
@ -24,6 +24,8 @@
|
|||
|
||||
#include "GormWindowTemplate.h"
|
||||
|
||||
@class GormNSWindow;
|
||||
|
||||
@interface NSWindow (Private)
|
||||
- (void) _setReleasedWhenClosed: (BOOL)flags;
|
||||
@end
|
||||
|
@ -46,5 +48,10 @@
|
|||
|
||||
return object;
|
||||
}
|
||||
|
||||
- (Class) baseWindowClass
|
||||
{
|
||||
return [GormNSWindow class];
|
||||
}
|
||||
@end
|
||||
|
||||
|
|
Loading…
Reference in a new issue