* Source/GSNibLoader.m: Added logging to help debugging of issues

with nib loading.
	* Source/NSTextContainer.m: -[NSTextContainer initWithCoder:]
	removed call to unarchive the textview to prevent a leak.  Also
	don't set the textview as the text container.   Currently we 
	just get the contents of the text container and rebuild it
	in NSTextView.m.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29116 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2009-12-11 18:12:46 +00:00
parent 416dcffdb4
commit 483044e48c
3 changed files with 28 additions and 2 deletions

View file

@ -1,3 +1,13 @@
2009-12-11 13:09-EST Gregory John Casamento <greg_casamento@yahoo.com>
* Source/GSNibLoader.m: Added logging to help debugging of issues
with nib loading.
* Source/NSTextContainer.m: -[NSTextContainer initWithCoder:]
removed call to unarchive the textview to prevent a leak. Also
don't set the textview as the text container. Currently we
just get the contents of the text container and rebuild it
in NSTextView.m.
2009-12-10 Quentin Mathe <quentin.mathe@gmail.com>
* Headers/AppKit/NSKKeyValueBinding.h:

View file

@ -84,8 +84,20 @@
NSLog(@"Nib without container object!");
}
}
else
{
NSLog(@"IB.objectdata not found when loading nib.");
}
RELEASE(unarchiver);
}
else
{
NSLog(@"Could not instantiate unarchiver.");
}
}
else
{
NSLog(@"Data passed to nib loading method is nil.");
}
}
NS_HANDLER
@ -140,6 +152,10 @@
NSLog(@"Could not load Nib file: %@",fileName);
}
}
else
{
NSLog(@"Nib file specified %@, could not be found.",fileName);
}
return loaded;
}

View file

@ -459,8 +459,8 @@ framework intact.
{
if ([aDecoder allowsKeyedCoding])
{
NSTextView *view = [aDecoder decodeObjectForKey: @"NSTextView"];
NSSize size = NSZeroSize;
// NSTextView *view = [aDecoder decodeObjectForKey: @"NSTextView"];
if ([aDecoder containsValueForKey: @"NSWidth"])
{
@ -483,7 +483,7 @@ framework intact.
_layoutManager = [aDecoder decodeObjectForKey: @"NSLayoutManager"];
}
[self setTextView: view];
// [self setTextView: view];
return self;
}
else