on 10.6 avoid some wizardry to work around a 10.5 bug when switching a table's image's template setting
This commit is contained in:
parent
7429e60a74
commit
81e75fe160
|
@ -171,8 +171,12 @@
|
||||||
if ([ident isEqualToString: @"UL Image"] || [ident isEqualToString: @"DL Image"])
|
if ([ident isEqualToString: @"UL Image"] || [ident isEqualToString: @"DL Image"])
|
||||||
{
|
{
|
||||||
//ensure arrows are white only when selected
|
//ensure arrows are white only when selected
|
||||||
|
if ([NSApp isOnSnowLeopardOrBetter])
|
||||||
|
[[cell image] setTemplate: [cell backgroundStyle] == NSBackgroundStyleLowered];
|
||||||
|
else
|
||||||
|
{
|
||||||
NSImage * image = [cell image];
|
NSImage * image = [cell image];
|
||||||
BOOL template = [cell backgroundStyle] == NSBackgroundStyleLowered;
|
const BOOL template = [cell backgroundStyle] == NSBackgroundStyleLowered;
|
||||||
if ([image isTemplate] != template)
|
if ([image isTemplate] != template)
|
||||||
{
|
{
|
||||||
[image setTemplate: template];
|
[image setTemplate: template];
|
||||||
|
@ -182,6 +186,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
- (NSRect) frameOfCellAtColumn: (NSInteger) column row: (NSInteger) row
|
- (NSRect) frameOfCellAtColumn: (NSInteger) column row: (NSInteger) row
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue