Temporary workaround in -[NSIBObjectData initWithDocument] until bug#17426 is resolved.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@23288 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2006-08-14 05:05:56 +00:00
parent c7ce49dca4
commit 94afd25de3
2 changed files with 14 additions and 4 deletions

View file

@ -1,3 +1,8 @@
2006-08-14 01:04-EDT Gregory John Casamento <greg_casamento@yahoo.com>
* GormCore/GormNibWrapperBuilder.m: Temporary workaround in
-[NSIBObjectData initWithDocument:] until 17426 is resolved.
2006-08-13 21:48-EDT Gregory John Casamento <greg_casamento@yahoo.com>
* GormCore/GormNibWrapperBuilder.m: Correct issue which was

View file

@ -56,16 +56,21 @@
// Create the container for the .nib file...
ASSIGN(_root, owner);
NSMapInsert(_names, owner, @"File's Owner");
NSMapInsert(_oids, owner, [[NSNumber alloc] initWithUnsignedInt: oid++]);
NSMapInsert(_oids, owner, [NSString stringWithFormat: @"%d", oid++]); // [[NSNumber alloc] initWithUnsignedInt: oid++]);
ASSIGN(_framework, @"IBCocoaFramework");
[_topLevelObjects addObjectsFromArray: [[document topLevelObjects] allObjects]];
[_visibleWindows addObjectsFromArray: [[document visibleWindows] allObjects]];
// fill in objects and connections....
while((o = [en nextObject]) != nil)
{
NSNumber *currOid = [[NSNumber alloc] initWithUnsignedInt: oid++];
NSString *currOid = [NSString stringWithFormat: @"%d", oid++];
//
// NOTE: Should change to this once the 17426 is resolved.
// NSNumber *currOid = [NSNumber numberWithUnsignedInt: oid++];
//
if([o isMemberOfClass: [NSNibConnector class]])
{
id src = [o source];