Changeset 7389


Ignore:
Timestamp:
Dec 14, 2008, 4:50:41 PM (10 years ago)
Author:
livings124
Message:

ensure auto-grouping will never be used on Tiger

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/GroupsController.m

    r7388 r7389  
    2626#import "CTGradient.h"
    2727#import "NSBezierPathAdditions.h"
     28#import "NSApplicationAdditions.h"
    2829
    2930#define ICON_WIDTH 16.0
     
    203204- (BOOL) usesAutoAssignRulesForIndex: (NSInteger) index
    204205{
     206    if (![NSApp isOnLeopardOrBetter])
     207        return NO;
     208   
    205209    NSInteger orderIndex = [self rowValueForIndex: index];
    206210    if (orderIndex == -1)
     
    453457   
    454458    NSEnumerator * iterator = [[self autoAssignRulesForIndex: index] objectEnumerator];
    455     NSArray * rule = nil;
     459    NSArray * rule;
    456460    while ((rule = [iterator nextObject]))
    457461    {
     
    467471        NSStringCompareOptions options;
    468472        if ([place isEqualToString: @"begins"])
    469             options = NSCaseInsensitiveSearch + NSAnchoredSearch;
     473            options = NSCaseInsensitiveSearch | NSAnchoredSearch;
    470474        else if ([place isEqualToString: @"ends"])
    471             options = NSCaseInsensitiveSearch + NSBackwardsSearch + NSAnchoredSearch;
     475            options = NSCaseInsensitiveSearch | NSBackwardsSearch | NSAnchoredSearch;
    472476        else if ([place isEqualToString: @"contains"])
    473477            options = NSCaseInsensitiveSearch;
Note: See TracChangeset for help on using the changeset viewer.