- Timestamp:
- Jun 10, 2006, 11:06:30 PM (16 years ago)
- Location:
- trunk/macosx
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/Controller.h
r310 r323 100 100 - (void) removeTorrentWithIndex: (NSIndexSet *) indexSet 101 101 deleteData: (BOOL) deleteData; 102 103 102 - (void) removeSheetDidEnd: (NSWindow *) sheet returnCode: (int) returnCode 104 103 contextInfo: (NSDictionary *) dict; 105 104 - (void) confirmRemoveTorrents: (NSArray *) torrents 106 105 deleteData: (BOOL) deleteData; 106 107 - (void) copyTorrentFile: (id) sender; 107 108 108 109 - (void) revealFile: (id) sender; -
trunk/macosx/Controller.m
r318 r323 631 631 } 632 632 633 - (void) copyTorrentFile: (id) sender 634 { 635 Torrent * torrent; 636 NSEnumerator * enumerator = [[self torrentsAtIndexes: 637 [fTableView selectedRowIndexes]] objectEnumerator]; 638 639 while ((torrent = [enumerator nextObject])) 640 { 641 //warn user if torrent file can't be found 642 if (![[NSFileManager defaultManager] fileExistsAtPath: [torrent torrentLocation]]) 643 { 644 #warning warn user of failure 645 continue; 646 } 647 648 //ask for copy location and name (save) 649 NSSavePanel * savePanel = [NSSavePanel savePanel]; 650 [savePanel setRequiredFileType: @"torrent"]; 651 [savePanel setCanSelectHiddenExtension: YES]; 652 653 if ([savePanel runModalForDirectory: nil file: [torrent name]] == NSOKButton) 654 [[NSFileManager defaultManager] copyPath: [torrent torrentLocation] 655 toPath: [savePanel filename] handler: nil]; 656 } 657 } 658 633 659 - (void) revealFile: (id) sender 634 660 { … … 1143 1169 //only enable some items if it is in a context menu or the window is useable 1144 1170 BOOL canUseMenu = [[[menuItem menu] title] isEqualToString: @"Context"] 1145 || ([fWindow isKeyWindow] && ![fToolbar customizationPaletteIsRunning]);1171 || [fWindow isKeyWindow]; 1146 1172 1147 1173 //enable show info -
trunk/macosx/English.lproj/MainMenu.nib/classes.nib
r310 r323 5 5 advancedChanged = id; 6 6 checkUpdate = id; 7 copyTorrentFile = id; 7 8 growlRegister = id; 8 9 linkForums = id; -
trunk/macosx/English.lproj/MainMenu.nib/info.nib
r310 r323 12 12 <string>423 269 420 60 0 0 1152 842 </string> 13 13 <key>29</key> 14 <string>1 95 519451 44 0 0 1152 842 </string>14 <string>189 691 451 44 0 0 1152 842 </string> 15 15 <key>456</key> 16 <string>2 12 488 153 1680 0 1152 842 </string>16 <string>252 356 167 199 0 0 1152 842 </string> 17 17 <key>581</key> 18 18 <string>324 628 112 68 0 0 1152 842 </string> … … 30 30 <key>IBOpenObjects</key> 31 31 <array> 32 <integer>29</integer> 32 33 <integer>21</integer> 33 34 </array>
Note: See TracChangeset
for help on using the changeset viewer.