Merge pull request #216 from gnustep/fix_xib_custom_class_loading

This commit is contained in:
Gregory Casamento 2023-12-17 12:18:07 -05:00 committed by GitHub
commit 8abe12b9ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -310,6 +310,7 @@
objects = [[NSMutableDictionary alloc] init];
stack = [[NSMutableArray alloc] init];
decoded = [[NSMutableDictionary alloc] init];
_customClasses= [[NSMutableDictionary alloc] init];
}
- (id) initForReadingWithData: (NSData*)data
@ -318,18 +319,16 @@
NSXMLParser *theParser;
NSData *theData = data;
// Dictionary which contains custom class information for Gorm/IB.
_customClasses = [[NSMutableDictionary alloc] init];
// Initialize...
[self _initCommon];
// Prepare the XIB data for parsing...
theData = [self _preProcessXib: data];
if (theData == nil)
{
return nil;
}
// Initialize...
[self _initCommon];
theParser = [[NSXMLParser alloc] initWithData: theData];
[theParser setDelegate: self];