Changeset 12944


Ignore:
Timestamp:
Oct 6, 2011, 2:27:23 AM (11 years ago)
Author:
livings124
Message:

remove another call to filenames

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r12943 r12944  
    10181018    if (code == NSOKButton)
    10191019    {
    1020         NSDictionary * dictionary = [[NSDictionary alloc] initWithObjectsAndKeys: [panel filenames], @"Filenames",
     1020        NSMutableArray * filenames = [NSMutableArray arrayWithCapacity: [[panel URLs] count]];
     1021        for (NSURL * url in [panel URLs])
     1022            [filenames addObject: [url path]];
     1023       
     1024        NSDictionary * dictionary = [[NSDictionary alloc] initWithObjectsAndKeys: filenames, @"Filenames",
    10211025            [NSNumber numberWithInt: [useOptions boolValue] ? ADD_SHOW_OPTIONS : ADD_MANUAL], @"AddType", nil];
    10221026        [self performSelectorOnMainThread: @selector(openFilesWithDict:) withObject: dictionary waitUntilDone: NO];
Note: See TracChangeset for help on using the changeset viewer.