Changeset 6955
- Timestamp:
- Oct 25, 2008, 2:34:43 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/TrackerTableView.m
r6889 r6955 24 24 25 25 #import "TrackerTableView.h" 26 #import "NSApplicationAdditions.h"27 26 28 27 @implementation TrackerTableView … … 51 50 if (rows.length > 0) 52 51 { 53 BOOL onLeopard = [NSApp isOnLeopardOrBetter];54 55 52 //determine what the first row color should be 56 if ( onLeopard)53 if (![[fTrackers objectAtIndex: rows.location] isKindOfClass: [NSNumber class]]) 57 54 { 58 if (![[fTrackers objectAtIndex: rows.location] isKindOfClass: [NSNumber class]])55 for (NSInteger i = rows.location-1; i>=0; i--) 59 56 { 60 for (NSInteger i = rows.location-1; i>=0; i--) 61 { 62 if ([[fTrackers objectAtIndex: i] isKindOfClass: [NSNumber class]]) 63 break; 64 start = !start; 65 } 57 if ([[fTrackers objectAtIndex: i] isKindOfClass: [NSNumber class]]) 58 break; 59 start = !start; 66 60 } 67 else68 {69 rows.location++;70 rows.length--;71 }61 } 62 else 63 { 64 rows.location++; 65 rows.length--; 72 66 } 73 67 … … 75 69 for (i = rows.location; i < NSMaxRange(rows); i++) 76 70 { 77 if ([[fTrackers objectAtIndex: i] isKindOfClass: [NSNumber class]] && onLeopard)71 if ([[fTrackers objectAtIndex: i] isKindOfClass: [NSNumber class]]) 78 72 { 79 73 start = YES;
Note: See TracChangeset
for help on using the changeset viewer.