mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 13:20:47 +00:00
Merge pull request #216 from gnustep/fix_xib_custom_class_loading
This commit is contained in:
commit
8abe12b9ca
1 changed files with 4 additions and 5 deletions
|
@ -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];
|
||||
|
||||
|
|
Loading…
Reference in a new issue