Changeset 5478

Show
Ignore:
Timestamp:
04/25/08 03:15:30 (3 weeks ago)
Author:
morris
Message:

Use FSMatchAliasBulk to avoid GUI during alias lookup

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Spiral/trunk/SPPlaylistItem.m

    r5468 r5478  
    9595        CFURLRef                url; 
    9696        FSRef                   fs; 
    97         Boolean                 wasChanged
     97        Boolean                 needsUpdate
    9898        OSStatus                status; 
     99        short                   aliasCount; 
    99100         
    100101        if(!alias) 
    101102                return NULL; 
    102103         
    103         status = FSResolveAlias(NULL, alias, &fs, &wasChanged); 
     104        aliasCount = 1; 
     105        status = FSMatchAliasBulk(NULL, kARMSearch | kARMNoUI, alias, &aliasCount, &fs, &needsUpdate, NULL, NULL); 
    104106         
    105107        if(status != noErr) 
     
    486488        NSString                *path; 
    487489         
    488         if([[NSFileManager defaultManager] directoryExistsAtPath:[self path]]) 
     490        if([[NSFileManager defaultManager] fileExistsAtPath:[self path]]) 
    489491                return [self path]; 
    490492