Changeset 750


Ignore:
Timestamp:
Aug 9, 2006, 3:25:41 AM (15 years ago)
Author:
livings124
Message:

remove unneeded retain

Location:
trunk/macosx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.h

    r748 r750  
    9595}
    9696
    97 - (void) openFiles: (NSArray *) filenames;
    98 - (void) openFiles: (NSArray *) filenames ignoreDownloadFolder: (BOOL) ignore;
    99 - (void) openFilesAsk: (NSMutableArray *) files;
     97- (void) openFiles:     (NSArray *) filenames;
     98- (void) openFiles:     (NSArray *) filenames ignoreDownloadFolder: (BOOL) ignore;
     99- (void) openFilesAsk:  (NSMutableArray *) files;
    100100- (void) openShowSheet: (id) sender;
    101101
     
    171171- (void) reloadInspectorSettings: (NSNotification *) notification;
    172172
    173 - (void) checkAutoImportDirectory: (NSTimer *) t;
     173- (void) checkAutoImportDirectory: (NSTimer *) timer;
    174174- (void) autoImportChange: (NSNotification *) notification;
    175175
  • trunk/macosx/Controller.m

    r749 r750  
    5353#define WINDOW_REGULAR_WIDTH    468.0
    5454
     55#define UPDATE_UI_SECONDS           1.0
     56#define AUTO_IMPORT_SECONDS         15.0
    5557#define AUTO_SPEED_LIMIT_SECONDS    10.0
    5658
     
    337339    fCompleted = 0;
    338340    [self updateUI: nil];
    339     fTimer = [NSTimer scheduledTimerWithTimeInterval: 1.0 target: self
     341    fTimer = [NSTimer scheduledTimerWithTimeInterval: UPDATE_UI_SECONDS target: self
    340342        selector: @selector(updateUI:) userInfo: nil repeats: YES];
    341343    [[NSRunLoop currentRunLoop] addTimer: fTimer forMode: NSModalPanelRunLoopMode];
     
    354356   
    355357    //timer to check for auto import every 15 seconds, must do after everything else is set up
    356     fAutoImportTimer = [NSTimer scheduledTimerWithTimeInterval: 15.0 target: self
     358    fAutoImportTimer = [NSTimer scheduledTimerWithTimeInterval: AUTO_IMPORT_SECONDS target: self
    357359        selector: @selector(checkAutoImportDirectory:) userInfo: nil repeats: YES];
    358360    [[NSRunLoop currentRunLoop] addTimer: fAutoImportTimer forMode: NSDefaultRunLoopMode];
     
    466468    if (ignore || [downloadChoice isEqualToString: @"Ask"])
    467469    {
    468         [self openFilesAsk: [[filenames mutableCopy] retain]];
     470        [self openFilesAsk: [filenames mutableCopy]];
    469471        return;
    470472    }
     
    555557    }
    556558   
    557     [torrent release];
    558    
    559559    [self performSelectorOnMainThread: @selector(openFilesAsk:) withObject: [dictionary objectForKey: @"Files"]
    560560                        waitUntilDone: NO];
    561561   
     562    [torrent release];
    562563    [dictionary release];
    563564}
Note: See TracChangeset for help on using the changeset viewer.