* Source/NSTextView.m: initWithCoder: temporarily remove decoding

of NSTextContainer since it is causing a crash when editing a text
	view's that was loaded from a nib file. 


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28442 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2009-08-08 04:43:41 +00:00
parent 8603ae06ae
commit 1aa9c676ce
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2009-08-06 01:42-EDT Gregory John Casamento <greg.casamento@gmail.com>
* Source/NSTextView.m: initWithCoder: temporarily remove decoding
of NSTextContainer since it is causing a crash when editing a text
view's that was loaded from a nib file.
2009-08-04 Fred Kiefer <FredKiefer@gmx.de>
* Headers/AppKit/NSToolbarItem.h: Move the _flags to the class

View file

@ -852,6 +852,8 @@ that makes decoding and encoding compatible with the old code.
//_textStorage = RETAIN([aDecoder decodeObjectForKey: @"NSTextStorage"]);
}
/* Don't currently unarchive the text container, as
we create it below and it's causing an issue with nib loading.
if ([aDecoder containsValueForKey: @"NSTextContainer"])
{
// Decode the text container, but don't retain it, as it will be owned by the
@ -861,6 +863,7 @@ that makes decoding and encoding compatible with the old code.
RELEASE(self);
}
else
*/
{
NSSize size = NSMakeSize(0,_maxSize.height);
NSTextContainer *aTextContainer = [self buildUpTextNetwork: NSZeroSize];