Decode NSCell in the proper place. Fix metafont issue with toolTips

This commit is contained in:
Gregory John Casamento 2020-05-02 08:12:23 -04:00
parent f597a389de
commit 12d6da05c0
3 changed files with 23 additions and 5 deletions

View file

@ -1431,6 +1431,8 @@ didStartElement: (NSString*)elementName
size = [NSFont labelFontSize];
else if ([metaFont containsString: @"system"])
size = [NSFont systemFontSize];
else if ([metaFont containsString: @"toolTip"])
size = [NSFont smallSystemFontSize];
else if (metaFont)
NSWarnMLog(@"unknown meta font value: %@", metaFont);
}

View file

@ -167,5 +167,25 @@
_delegate = delegate;
}
@end
- (void) drawInteriorWithFrame: (NSRect)frame inView: (NSView *)controlView
{
NSLog(@"Drawing");
}
- (id) initWithCoder: (NSCoder *)coder
{
if ([coder allowsKeyedCoding])
{
if ([coder containsValueForKey: @"NSPathComponentCells"])
{
[self setPathComponentCells: [coder decodeObjectForKey: @"NSPathComponentCells"]];
}
}
else
{
}
return self;
}
@end

View file

@ -186,10 +186,6 @@
[self setBackgroundColor: [NSColor windowBackgroundColor]];
[self setPathStyle: NSPathStyleStandard];
if ([coder containsValueForKey: @"NSPathComponentCells"])
{
[self setPathComponentCells: [coder decodeObjectForKey: @"NSPathComponentCells"]];
}
if ([coder containsValueForKey: @"NSPathStyle"])
{
[self setPathStyle: [coder decodeIntegerForKey: @"NSPathStyle"]];