Changeset 2385


Ignore:
Timestamp:
Jul 18, 2007, 1:29:26 AM (16 years ago)
Author:
livings124
Message:

add basic add torrent ability for ipc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r2327 r2385  
    32183218- (BOOL) ipcAddTorrents: (NSArray *) torrents
    32193219{
    3220     /* 'torrents' is NSArray of NSString torrent file paths, should
    3221        return NO if torrent fails to load */
    3222     return NO;
     3220    int oldCount = [fTorrents count];
     3221   
     3222    [self openFiles: torrents];
     3223   
     3224    return [fTorrents count] > oldCount;
    32233225}
    32243226
     
    32263228                 directory: (NSString *) dir
    32273229{
    3228     /* 'path' is path to torrent file, 'dir' is the directory it
    3229        should download it's files to and may be nil, should return NO
    3230        if torrent fails to load */
    32313230    return NO;
    32323231}
Note: See TracChangeset for help on using the changeset viewer.