mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 13:10:59 +00:00
Fix alternateContents in NSButtonCell (#305)
This commit is contained in:
parent
55ef9f465f
commit
9901bbcb4c
1 changed files with 13 additions and 1 deletions
|
@ -1752,7 +1752,19 @@
|
|||
}
|
||||
if ([aDecoder containsValueForKey: @"NSAlternateContents"])
|
||||
{
|
||||
[self setAlternateTitle: [aDecoder decodeObjectForKey: @"NSAlternateContents"]];
|
||||
id alternateContents = [aDecoder decodeObjectForKey: @"NSAlternateContents"];
|
||||
if ([alternateContents isKindOfClass:[NSString class]])
|
||||
{
|
||||
[self setAlternateTitle:alternateContents];
|
||||
}
|
||||
else if ([alternateContents isKindOfClass:[NSImage class]])
|
||||
{
|
||||
[self setAlternateImage:alternateContents];
|
||||
}
|
||||
else
|
||||
{
|
||||
NSLog(@"Invalid class for NSAlternateContents: %@", [alternateContents class]);
|
||||
}
|
||||
}
|
||||
if ([aDecoder containsValueForKey: @"NSButtonFlags"])
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue