mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 19:01:15 +00:00
Minor corrections
This commit is contained in:
parent
e99dfd140c
commit
bb17ac62d4
1 changed files with 7 additions and 7 deletions
|
@ -7,7 +7,7 @@
|
|||
#import <AppKit/NSNibLoading.h>
|
||||
|
||||
// For some nib/xibs the AppDelegate is defined...
|
||||
@interface AppDelegate : NSObject
|
||||
@interface AppDelegate : NSObject
|
||||
{
|
||||
IBOutlet NSWindow *window;
|
||||
}
|
||||
|
@ -37,14 +37,14 @@ int main()
|
|||
if ([[localException name] isEqualToString: NSInternalInconsistencyException ])
|
||||
SKIP("It looks like GNUstep backend is not yet installed")
|
||||
}
|
||||
NS_ENDHANDLER;
|
||||
NS_ENDHANDLER
|
||||
|
||||
if ([[path lastPathComponent] isEqualToString: @"obj"])
|
||||
{
|
||||
path = [path stringByDeletingLastPathComponent];
|
||||
}
|
||||
|
||||
pass(bundle != nil, "NSBundle was initialized");
|
||||
PASS(bundle != nil, "NSBundle was initialized");
|
||||
|
||||
NS_DURING
|
||||
{
|
||||
|
@ -52,25 +52,25 @@ int main()
|
|||
owner: [NSApplication sharedApplication]
|
||||
topLevelObjects: testObjects];
|
||||
|
||||
pass(success == YES, ".gorm file was loaded properly using loadNibNamed:owner:topLevelObjects:");
|
||||
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(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:");
|
||||
PASS(success == YES, ".nib file was loaded properly using loadNibNamed:owner:topLevelObjects:");
|
||||
}
|
||||
NS_HANDLER
|
||||
{
|
||||
NSLog(@"%@", [localException reason]);
|
||||
}
|
||||
NS_ENDHANDLER;
|
||||
NS_ENDHANDLER
|
||||
|
||||
END_SET("NSNibLoading GNUstep basic")
|
||||
|
||||
|
|
Loading…
Reference in a new issue