* Source/NSFontDescriptor.m: Correct key for encoding and decoding.

This commit is contained in:
fredkiefer 2020-02-09 20:19:51 +01:00
parent d1466b23ef
commit b4ca06582e
3 changed files with 8 additions and 3 deletions

View file

@ -1,3 +1,7 @@
2020-02-09 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSFontDescriptor.m: Correct key for encoding and decoding.
2020-01-31 Sergii Stoian <stoyan255@gmail.com>
* Source/GSTitleView.m (mouseDown:): limit menu movement to screen

View file

@ -2401,7 +2401,8 @@ didStartElement: (NSString*)elementName
mask.flags.highlighted = [[attributes objectForKey: @"highlighted"] boolValue];
mask.flags.disabled = ([attributes objectForKey: @"enabled"] ?
[[attributes objectForKey: @"enabled"] boolValue] == NO : NO);
mask.flags.editable = [[attributes objectForKey: @"editable"] boolValue];
mask.flags.editable = ([attributes objectForKey: @"editable"] ?
[[attributes objectForKey: @"editable"] boolValue] : YES);
mask.flags.vCentered = [[attributes objectForKey: @"alignment"] isEqualToString: @"center"];
mask.flags.hCentered = [[attributes objectForKey: @"alignment"] isEqualToString: @"center"];
mask.flags.bordered = [[borderStyle lowercaseString] containsString: @"border"];

View file

@ -155,7 +155,7 @@
{
if ([aCoder allowsKeyedCoding])
{
[aCoder encodeObject: _attributes forKey: @"NSAttributes"];
[aCoder encodeObject: _attributes forKey: @"NSFontDescriptorAttributes"];
}
else
{
@ -167,7 +167,7 @@
{
if ([aDecoder allowsKeyedCoding])
{
_attributes = RETAIN([aDecoder decodeObjectForKey: @"NSAttributes"]);
_attributes = RETAIN([aDecoder decodeObjectForKey: @"NSFontDescriptorAttributes"]);
}
else
{