Debug changes

This commit is contained in:
Gregory John Casamento 2020-03-24 00:03:58 -04:00
parent b88bff5ddb
commit d90821dc8e
3 changed files with 23 additions and 2 deletions

View file

@ -63,6 +63,19 @@
@end
@interface GSXibKeyedUnarchiver (DebugMethods)
- (NSDictionary *) objects;
@end
@implementation GSXibKeyedUnarchiver (DebugMethods)
- (NSDictionary *) objects
{
return objects;
}
@end
@interface GSStoryboardLoader: GSModelLoader
{
}

View file

@ -155,6 +155,14 @@ static NSString *ApplicationClass = nil;
@end
@interface GSScene : NSObject
{
NSMutableArray *scenes;
}
@end
@implementation GSScene
@end
@implementation GSXib5KeyedUnarchiver
@ -181,6 +189,7 @@ static NSArray *XmlBoolDefaultYes = nil;
// associated class...
XmlTagToObjectClassMap =
[NSDictionary dictionaryWithObjectsAndKeys:
@"NSMutableArray", @"scenes",
@"NSMutableArray", @"objects",
@"NSMutableArray", @"items",
@"NSMutableArray", @"tabViewItems",
@ -207,6 +216,7 @@ static NSArray *XmlBoolDefaultYes = nil;
@"NSWindowTemplate", @"window",
@"NSView", @"tableCellView",
@"IBUserDefinedRuntimeAttribute5", @"userDefinedRuntimeAttribute",
@"GSScene", @"scene",
nil];
RETAIN(XmlTagToObjectClassMap);

View file

@ -53,14 +53,12 @@
@end
@implementation NSMenu (XibCompatibility)
- (BOOL) _isMainMenu
{
if (_name)
return [_name isEqualToString:@"_NSMainMenu"];
return NO;
}
@end
@interface GSXibLoader: GSModelLoader