mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 03:21:04 +00:00
Decode NSCell in the proper place. Fix metafont issue with toolTips
This commit is contained in:
parent
f597a389de
commit
12d6da05c0
3 changed files with 23 additions and 5 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"]];
|
||||
|
|
Loading…
Reference in a new issue