mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-01 01:01:21 +00:00
Improvements in keyed coding and correction for NSCell formatter unarchiving issue.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20235 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
31eeedc9c5
commit
c0dc199651
7 changed files with 160 additions and 51 deletions
|
@ -133,6 +133,7 @@ Interface for a bunch of internal methods that need to be cleaned up.
|
|||
NSArray *linkAttr;
|
||||
NSArray *markAttr;
|
||||
NSArray *selectedAttr;
|
||||
NSTextView *textView;
|
||||
}
|
||||
@end
|
||||
|
||||
|
@ -656,20 +657,24 @@ that makes decoding and encoding compatible with the old code.
|
|||
{
|
||||
[self setMaxSize: [aDecoder decodeSizeForKey: @"NSMaxSize"]];
|
||||
}
|
||||
// Is this a mistype from Apple?
|
||||
if ([aDecoder containsValueForKey: @"NSMinize"])
|
||||
{
|
||||
// it's NSMinize in pre-10.3 formats.
|
||||
[self setMinSize: [aDecoder decodeSizeForKey: @"NSMinize"]];
|
||||
}
|
||||
if ([aDecoder containsValueForKey: @"NSMinSize"])
|
||||
{
|
||||
// However, if NSMinSize is present we want to use it.
|
||||
[self setMinSize: [aDecoder decodeSizeForKey: @"NSMinSize"]];
|
||||
}
|
||||
if ([aDecoder containsValueForKey: @"NSTextContainer"])
|
||||
{
|
||||
[self setTextContainer: [aDecoder decodeObjectForKey: @"NSTextContainer"]];
|
||||
}
|
||||
|
||||
// FIXME set the flags, shared data, storage
|
||||
if ([aDecoder containsValueForKey: @"NSTVFlags"])
|
||||
{
|
||||
//int vFlags = [aDecoder decodeIntForKey: @"NSTVFlags"];
|
||||
int vFlags = [aDecoder decodeIntForKey: @"NSTVFlags"];
|
||||
// FIXME set the flags
|
||||
}
|
||||
if ([aDecoder containsValueForKey: @"NSSharedData"])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue