Changeset 7389 for trunk/macosx/GroupsController.m
- Timestamp:
- Dec 14, 2008, 4:50:41 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/GroupsController.m
r7388 r7389 26 26 #import "CTGradient.h" 27 27 #import "NSBezierPathAdditions.h" 28 #import "NSApplicationAdditions.h" 28 29 29 30 #define ICON_WIDTH 16.0 … … 203 204 - (BOOL) usesAutoAssignRulesForIndex: (NSInteger) index 204 205 { 206 if (![NSApp isOnLeopardOrBetter]) 207 return NO; 208 205 209 NSInteger orderIndex = [self rowValueForIndex: index]; 206 210 if (orderIndex == -1) … … 453 457 454 458 NSEnumerator * iterator = [[self autoAssignRulesForIndex: index] objectEnumerator]; 455 NSArray * rule = nil;459 NSArray * rule; 456 460 while ((rule = [iterator nextObject])) 457 461 { … … 467 471 NSStringCompareOptions options; 468 472 if ([place isEqualToString: @"begins"]) 469 options = NSCaseInsensitiveSearch +NSAnchoredSearch;473 options = NSCaseInsensitiveSearch | NSAnchoredSearch; 470 474 else if ([place isEqualToString: @"ends"]) 471 options = NSCaseInsensitiveSearch + NSBackwardsSearch +NSAnchoredSearch;475 options = NSCaseInsensitiveSearch | NSBackwardsSearch | NSAnchoredSearch; 472 476 else if ([place isEqualToString: @"contains"]) 473 477 options = NSCaseInsensitiveSearch;
Note: See TracChangeset
for help on using the changeset viewer.