Changeset 9124
- Timestamp:
- Sep 16, 2009, 2:18:23 AM (13 years ago)
- Location:
- trunk/macosx
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/InfoWindowController.m
r9123 r9124 411 411 [icon release]; 412 412 } 413 414 413 415 414 NSString * name = [torrent name]; -
trunk/macosx/NSStringAdditions.m
r8029 r9124 24 24 25 25 #import "NSStringAdditions.h" 26 #import "NSApplicationAdditions.h" 26 27 #import "utils.h" 27 28 #import <transmission.h> … … 142 143 - (NSComparisonResult) compareFinder: (NSString *) string 143 144 { 144 const NSInteger comparisonOptions = NSCaseInsensitiveSearch | NSNumericSearch | NSWidthInsensitiveSearch | NSForcedOrderingSearch; 145 return [self compare: string options: comparisonOptions range: NSMakeRange(0, [self length]) locale: [NSLocale currentLocale]]; 145 if ([NSApp isOnSnowLeopardOrBetter]) 146 return [self localizedStandardCompare: string]; 147 else 148 { 149 const NSInteger comparisonOptions = NSCaseInsensitiveSearch | NSNumericSearch | NSWidthInsensitiveSearch | NSForcedOrderingSearch; 150 return [self compare: string options: comparisonOptions range: NSMakeRange(0, [self length]) locale: [NSLocale currentLocale]]; 151 } 146 152 } 147 153
Note: See TracChangeset
for help on using the changeset viewer.