Changeset 208


Ignore:
Timestamp:
Apr 5, 2006, 1:39:30 PM (16 years ago)
Author:
titer
Message:

Got rid of a class variable, makes performSelectorOnMainThread retain
and release it instead

Location:
trunk/macosx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.h

    r207 r208  
    7171
    7272    io_connect_t                fRootPort;
    73     NSArray                     * fFilenames;
    7473    NSTimer                     * fTimer;
    7574    NSTimer                     * fUpdateTimer;
  • trunk/macosx/Controller.m

    r207 r208  
    362362- (void) open: (NSArray *) files
    363363{
    364     fFilenames = [files retain];
    365364    [self performSelectorOnMainThread: @selector(cantFindAName:)
    366                 withObject: NULL waitUntilDone: NO];
     365                withObject: files waitUntilDone: NO];
    367366}
    368367
     
    385384}
    386385
    387 - (void) cantFindAName: (id) sender
    388 {
    389     [self application: NSApp openFiles: fFilenames];
    390     [fFilenames release];
     386- (void) cantFindAName: (NSArray *) filenames
     387{
     388    [self application: NSApp openFiles: filenames];
    391389}
    392390
     
    394392    contextInfo: (void *) info
    395393{
    396     if( code != NSOKButton )
    397     {
    398         return;
    399     }
    400 
    401     fFilenames = [[s filenames] retain];
    402 
    403     [self performSelectorOnMainThread: @selector(cantFindAName:)
    404                 withObject: NULL waitUntilDone: NO];
     394    if( code == NSOKButton )
     395        [self performSelectorOnMainThread: @selector(cantFindAName:)
     396                    withObject: [s filenames] waitUntilDone: NO];
    405397}
    406398
Note: See TracChangeset for help on using the changeset viewer.