This commit is contained in:
Gregory John Casamento 2021-10-11 19:31:16 -04:00
parent 49b3111124
commit 9c8e6d58ca
3 changed files with 3514 additions and 13 deletions

File diff suppressed because it is too large Load diff

Binary file not shown.

View file

@ -8,6 +8,9 @@
// For some nib/xibs the AppDelegate is defined...
@interface AppDelegate : NSObject
{
IBOutlet NSWindow *window;
}
@end
@implementation AppDelegate
@ -41,20 +44,33 @@ int main()
path = [path stringByDeletingLastPathComponent];
}
pass(bundle != NO, "NSBundle was initialized");
success = [bundle loadNibNamed: @"Test-gorm"
owner: [NSApplication sharedApplication]
topLevelObjects: testObjects];
pass(success == YES, ".gorm file was loaded properly using loadNibNamed:owner:topLevelObjects:");
success = [bundle loadNibNamed: @"Test-xib"
owner: [NSApplication sharedApplication]
topLevelObjects: testObjects];
pass(success == YES, ".xib file was loaded properly using loadNibNamed:owner:topLevelObjects:");
pass(bundle != nil, "NSBundle was initialized");
NS_DURING
{
success = [bundle loadNibNamed: @"Test-gorm"
owner: [NSApplication sharedApplication]
topLevelObjects: testObjects];
pass(success == YES, ".gorm file was loaded properly using loadNibNamed:owner:topLevelObjects:");
success = [bundle loadNibNamed: @"Test-xib"
owner: [NSApplication sharedApplication]
topLevelObjects: testObjects];
pass(success == YES, ".xib file was loaded properly using loadNibNamed:owner:topLevelObjects:");
success = [bundle loadNibNamed: @"Test-nib"
owner: [NSApplication sharedApplication]
topLevelObjects: testObjects];
pass(success == YES, ".nib file was loaded properly using loadNibNamed:owner:topLevelObjects:");
}
NS_HANDLER
{
NSLog(@"%@", [localException reason]);
}
NS_ENDHANDLER;
END_SET("NSNibLoading GNUstep basic")