* Source/NSTextAttachment.m: Add keyed coding.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37580 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2014-01-12 14:55:03 +00:00
parent ad6f23c0ee
commit 26c365c9f0
2 changed files with 12 additions and 3 deletions

View file

@ -1,4 +1,8 @@
2014-01-10 Fred Kiefer <FredKiefer@gmx.de>
2014-01-12 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSTextAttachment.m: Add keyed coding.
2014-01-11 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSAttributedString.m (-fixFontAttributeInRange:): Don't
look for substitutions for control or attachment characters.

View file

@ -350,7 +350,11 @@
{
if ([aCoder allowsKeyedCoding])
{
// TODO_NIB: Determine keys for NSTextAttachment.
[aCoder encodeObject: [self fileWrapper] forKey: @"NSFileWrapper"];
if (_cell != nil)
{
[aCoder encodeObject: _cell forKey: @"NSCell"];
}
}
else
{
@ -363,7 +367,8 @@
{
if ([aDecoder allowsKeyedCoding])
{
// TODO_NIB: Determine keys for NSTextAttachment.
[self setFileWrapper: [aDecoder decodeObjectForKey: @"NSFileWrapper"]];
[self setAttachmentCell: [aDecoder decodeObjectForKey: @"NSCell"]];
}
else
{