Changeset 3121

Show
Ignore:
Timestamp:
07/12/05 00:06:19 (3 years ago)
Author:
morris
Message:

Look up file types from set instead of from array

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Footagehead/trunk/FHFileHandler.m

    r3102 r3121  
    115115 
    116116- (NSArray *)files { 
    117         NSArray                         *types, *files; 
     117        NSSet                           *types; 
     118        NSArray                         *files; 
    118119        NSString                        *name, *path, *extension; 
    119120        FHFile                          *file; 
     
    128129                files   = [files sortedArrayUsingFunction:compareFile context:NULL]; 
    129130                count   = [files count]; 
    130                 types   = [FHFileHandler handledFileTypes]; 
     131                types   = [NSSet setWithArray:[FHFileHandler handledFileTypes]]; 
    131132                _files  = [[NSMutableArray alloc] initWithCapacity:count]; 
    132133                 
     
    175176         
    176177@end 
     178 
  • Footagehead/trunk/FHHTMLParser.m

    r2944 r3121  
    3737        NSMutableSet    *set; 
    3838        NSCharacterSet  *skipSet; 
    39         NSArray                       *types; 
     39        NSSet                 *types; 
    4040        NSString                *token, *link, *path; 
    4141        ZAURL                   *url; 
     
    7070        count = [links count]; 
    7171        urls = [NSMutableArray arrayWithCapacity:count]; 
    72         types = [NSImage FHImageFileTypes]; 
     72        types = [NSSet setWithArray:[NSImage FHImageFileTypes]]; 
    7373         
    7474        for(i = 0; i < count; i++) {