Added some extra checks/protections to ensure that a crash doesn't occur when

testing the interface.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@18269 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2003-12-25 04:48:32 +00:00
parent f00f63fac7
commit a86a6c4eb4
2 changed files with 19 additions and 7 deletions

View file

@ -1,3 +1,9 @@
2003-12-24 23:17 Gregory John Casamento <greg_casamento@yahoo.com>
* Gorm.m: Added a NS_DURING block around the main portions of the
testInterface method and also added some of the classes to the list
of classes which need to be translated from their "GormNS*" equivalents.
2003-12-23 23:32 Gregory John Casamento <greg_casamento@yahoo.com>
* Gorm.m: Update the minor release number. Add call to

20
Gorm.m
View file

@ -683,18 +683,24 @@ NSString *GormWillDetachObjectFromDocumentNotification = @"GormWillDetachObjectF
isTesting = YES; // set here, so that beginArchiving and endArchiving do not use templates.
archiver = [[NSArchiver alloc] init];
[activDoc beginArchiving];
[archiver encodeClassName: @"GormNSWindow"
intoClassName: @"NSWindow"];
[archiver encodeClassName: @"GormNSPanel"
intoClassName: @"NSPanel"];
[archiver encodeClassName: @"GormNSMenu"
[archiver encodeClassName: @"GormCustomView"
intoClassName: @"GormTestCustomView"];
[archiver encodeClassName: @"GormNSMenu"
intoClassName: @"NSMenu"];
[archiver encodeClassName: @"GormNSWindow"
intoClassName: @"NSWindow"];
[archiver encodeClassName: @"GormNSPanel"
intoClassName: @"NSPanel"];
[archiver encodeClassName: @"GormNSPopUpButton"
intoClassName: @"NSPopUpButton"];
[archiver encodeClassName: @"GormNSPopUpButtonCell"
intoClassName: @"NSPopUpButtonCell"];
[archiver encodeClassName: @"GormCustomView"
intoClassName: @"GormTestCustomView"];
[archiver encodeClassName: @"GormNSBrowser"
intoClassName: @"NSBrowser"];
[archiver encodeClassName: @"GormNSTableView"
intoClassName: @"NSTableView"];
[archiver encodeClassName: @"GormNSOutlineView"
intoClassName: @"NSOutlineView"];
[archiver encodeRootObject: activDoc];
data = RETAIN([archiver archiverData]);
[activDoc endArchiving];