From 7392fd2d62af5978eac9eb46380f0ca39ff543b2 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Sat, 25 Oct 2008 02:34:43 +0000 Subject: [PATCH] one less special case for Tiger (trivial change) --- macosx/TrackerTableView.m | 28 +++++++++++----------------- 1 file changed, 11 insertions(+), 17 deletions(-) diff --git a/macosx/TrackerTableView.m b/macosx/TrackerTableView.m index c61b5b6b8..1904f690a 100644 --- a/macosx/TrackerTableView.m +++ b/macosx/TrackerTableView.m @@ -23,7 +23,6 @@ *****************************************************************************/ #import "TrackerTableView.h" -#import "NSApplicationAdditions.h" @implementation TrackerTableView @@ -50,31 +49,26 @@ if (rows.length > 0) { - BOOL onLeopard = [NSApp isOnLeopardOrBetter]; - //determine what the first row color should be - if (onLeopard) + if (![[fTrackers objectAtIndex: rows.location] isKindOfClass: [NSNumber class]]) { - if (![[fTrackers objectAtIndex: rows.location] isKindOfClass: [NSNumber class]]) + for (NSInteger i = rows.location-1; i>=0; i--) { - for (NSInteger i = rows.location-1; i>=0; i--) - { - if ([[fTrackers objectAtIndex: i] isKindOfClass: [NSNumber class]]) - break; - start = !start; - } - } - else - { - rows.location++; - rows.length--; + if ([[fTrackers objectAtIndex: i] isKindOfClass: [NSNumber class]]) + break; + start = !start; } } + else + { + rows.location++; + rows.length--; + } NSInteger i; for (i = rows.location; i < NSMaxRange(rows); i++) { - if ([[fTrackers objectAtIndex: i] isKindOfClass: [NSNumber class]] && onLeopard) + if ([[fTrackers objectAtIndex: i] isKindOfClass: [NSNumber class]]) { start = YES; continue;