Added fix suggested by George.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28375 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2009-06-29 03:47:10 +00:00
parent 48a1be38fa
commit a145faad11
2 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2009-06-28 23:46-EDT Gregory John Casamento <greg.casamento@gmail.com>
* Source/NSTextView.m (-initWithCoder:): Retain the text
container and storage to prevent a crash since both are
autoreleased by the archiver.
2009-06-29 Fred Kiefer <FredKiefer@gmx.de>
* Headers/AppKit/NSKeyValueBinding.h,

View file

@ -847,7 +847,7 @@ that makes decoding and encoding compatible with the old code.
// currently not used....
if ([aDecoder containsValueForKey: @"NSTextStorage"])
{
_textStorage = [aDecoder decodeObjectForKey: @"NSTextStorage"];
_textStorage = RETAIN([aDecoder decodeObjectForKey: @"NSTextStorage"]);
}
// currently not used....
@ -864,7 +864,7 @@ that makes decoding and encoding compatible with the old code.
[aTextContainer setWidthTracksTextView: YES];
[aTextContainer setHeightTracksTextView: NO];
*/
_textContainer = [aDecoder decodeObjectForKey: @"NSTextContainer"];
_textContainer = RETAIN([aDecoder decodeObjectForKey: @"NSTextContainer"]);
}
if ([aDecoder containsValueForKey: @"NSTVFlags"])