~andymatuschak/sparkle/main

« back to all changes in this revision

Viewing changes to SUAppcast.m

  • Committer: August Joki
  • Date: 2009-06-15 04:37:45 UTC
  • Revision ID: august@snow-zebra.local-20090615043745-mwi2nivn8f2tckxr
added #ifdef's for Tiger support

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
        BOOL failed = NO;
60
60
        NSArray *xmlItems = nil;
61
61
        NSMutableArray *appcastItems = [NSMutableArray array];
62
 
        
 
62
#ifndef MAC_OS_X_VERSION_10_5
 
63
    [[NSFileManager defaultManager] removeFileAtPath:download handler:nil];
 
64
#else
63
65
    [[NSFileManager defaultManager] removeItemAtPath:downloadFilename error:NULL];
 
66
#endif
64
67
    [downloadFilename release];
65
68
    downloadFilename = nil;
66
69
    
176
179
- (void)download:(NSURLDownload *)download didFailWithError:(NSError *)error
177
180
{
178
181
        CFRelease(download);
179
 
    
 
182
#ifndef MAC_OS_X_VERSION_10_5
 
183
    [[NSFileManager defaultManager] removeFileAtPath:downloadFilename handler:nil];
 
184
#else
180
185
    [[NSFileManager defaultManager] removeItemAtPath:downloadFilename error:NULL];
 
186
#endif
181
187
    [downloadFilename release];
182
188
    downloadFilename = nil;
183
189