Skip to content

Commit

Permalink
Merge pull request #216 from gnustep/fix_xib_custom_class_loading
Browse files Browse the repository at this point in the history
  • Loading branch information
gcasa authored Dec 17, 2023
2 parents 508d298 + 3e6a12f commit 8abe12b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Source/GSXibKeyedUnarchiver.m
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ - (void) _initCommon
objects = [[NSMutableDictionary alloc] init];
stack = [[NSMutableArray alloc] init];
decoded = [[NSMutableDictionary alloc] init];
_customClasses= [[NSMutableDictionary alloc] init];
}

- (id) initForReadingWithData: (NSData*)data
Expand All @@ -318,18 +319,16 @@ - (id) initForReadingWithData: (NSData*)data
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];

Expand Down

0 comments on commit 8abe12b

Please sign in to comment.