mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 08:30:59 +00:00
* 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:
parent
ad6f23c0ee
commit
26c365c9f0
2 changed files with 12 additions and 3 deletions
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue