Changeset 4180
- Timestamp:
- 06/02/06 17:30:31 (2 years ago)
- Files:
-
- WiredClient/trunk/English.lproj/Files.nib/classes.nib (modified) (1 diff)
- WiredClient/trunk/English.lproj/Files.nib/info.nib (modified) (2 diffs)
- WiredClient/trunk/English.lproj/Files.nib/keyedobjects.nib (modified) (previous)
- WiredClient/trunk/English.lproj/ReleaseNotes.rtf (modified) (2 diffs)
- WiredClient/trunk/French.lproj/Files.nib/classes.nib (modified) (1 diff)
- WiredClient/trunk/French.lproj/Files.nib/keyedobjects.nib (modified) (previous)
- WiredClient/trunk/Japanese.lproj/Files.nib/classes.nib (modified) (1 diff)
- WiredClient/trunk/Japanese.lproj/Files.nib/info.nib (modified) (1 diff)
- WiredClient/trunk/Japanese.lproj/Files.nib/keyedobjects.nib (modified) (previous)
- WiredClient/trunk/WCFiles.m (modified) (1 diff)
- WiredClient/trunk/WCFilesTableView.h (added)
- WiredClient/trunk/WCFilesTableView.m (added)
- WiredClient/trunk/WCTransfers.h (modified) (1 diff)
- WiredClient/trunk/WCTransfers.m (modified) (8 diffs)
- WiredClient/trunk/WiredClient.xcodeproj/project.pbxproj (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
WiredClient/trunk/English.lproj/Files.nib/classes.nib
r3985 r4180 65 65 SUPERCLASS = WCConnectionController; 66 66 }, 67 {CLASS = WCFilesTableView; LANGUAGE = ObjC; SUPERCLASS = WITableView; }, 67 68 { 68 69 ACTIONS = {showViewOptions = id; }; WiredClient/trunk/English.lproj/Files.nib/info.nib
r4146 r4180 8 8 <dict> 9 9 <key>161</key> 10 <string> 519 158 104 99 0 0 1280 1002</string>10 <string>801 189 104 99 0 0 1920 1178 </string> 11 11 <key>190</key> 12 12 <string>844 570 190 49 0 0 1920 1178 </string> … … 18 18 <key>IBOpenObjects</key> 19 19 <array> 20 <integer>52</integer> 21 <integer>161</integer> 20 22 <integer>5</integer> 21 <integer>161</integer>22 <integer>52</integer>23 23 </array> 24 24 <key>IBSystem Version</key> WiredClient/trunk/English.lproj/ReleaseNotes.rtf
r4170 r4180 2 2 {\fonttbl\f0\fswiss\fcharset77 Helvetica-Bold;\f1\fswiss\fcharset77 Helvetica;} 3 3 {\colortbl;\red255\green255\blue255;\red126\green126\blue126;} 4 \vieww9000\viewh8400\viewkind05 4 \pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\ql\qnatural 6 5 … … 36 35 - Can now save chat as RTF, and select encoding when saving as plain text\ 37 36 - Add option to show a dialog for messages and broadcasts\ 37 - Can now drag from the files window directly to the Finder\ 38 38 - Show tooltips in user list\ 39 39 - Make sure find panel is enabled for all relevant text views\ WiredClient/trunk/French.lproj/Files.nib/classes.nib
r4147 r4180 65 65 SUPERCLASS = WCConnectionController; 66 66 }, 67 {CLASS = WCFilesTableView; LANGUAGE = ObjC; SUPERCLASS = WITableView; }, 67 68 { 68 69 ACTIONS = {showViewOptions = id; }; WiredClient/trunk/Japanese.lproj/Files.nib/classes.nib
r4143 r4180 65 65 SUPERCLASS = WCConnectionController; 66 66 }, 67 {CLASS = WCFilesTableView; LANGUAGE = ObjC; SUPERCLASS = WITableView; }, 67 68 { 68 69 ACTIONS = {showViewOptions = id; }; WiredClient/trunk/Japanese.lproj/Files.nib/info.nib
r4146 r4180 16 16 <key>IBOldestOS</key> 17 17 <integer>3</integer> 18 <key>IBOpenObjects</key> 19 <array> 20 <integer>5</integer> 21 </array> 18 22 <key>IBSystem Version</key> 19 23 <string>8I127</string> WiredClient/trunk/WCFiles.m
r4104 r4180 1234 1234 1235 1235 [pasteboard declareTypes:[NSArray arrayWithObjects: 1236 WCFilePboardType, NSStringPboardType, N ULL] owner:NULL];1236 WCFilePboardType, NSStringPboardType, NSFilesPromisePboardType, NULL] owner:NULL]; 1237 1237 [pasteboard setData:[NSArchiver archivedDataWithRootObject:sources] forType:WCFilePboardType]; 1238 1238 [pasteboard setString:string forType:NSStringPboardType]; 1239 [pasteboard setPropertyList:[NSArray arrayWithObject:NSFileTypeForHFSTypeCode('\0\0\0\0')] forType:NSFilesPromisePboardType]; 1239 1240 1240 1241 return YES; WiredClient/trunk/WCTransfers.h
r3598 r4180 60 60 + (id)transfersWithConnection:(WCServerConnection *)connection; 61 61 62 - (void)downloadFile:(WCFile *)file; 63 - (void)previewFile:(WCFile *)file; 64 - (void)uploadPath:(NSString *)path toFolder:(WCFile *)destination; 62 - (BOOL)downloadFile:(WCFile *)file; 63 - (BOOL)downloadFile:(WCFile *)file toFolder:(NSString *)destination; 64 - (BOOL)previewFile:(WCFile *)file; 65 - (BOOL)uploadPath:(NSString *)path toFolder:(WCFile *)destination; 65 66 66 67 - (IBAction)start:(id)sender; WiredClient/trunk/WCTransfers.m
r4084 r4180 72 72 - (void)_finishTransfer:(WCTransfer *)transfer; 73 73 74 - ( void)_downloadFile:(WCFile *)filepreview:(BOOL)preview;75 - ( void)_uploadPath:(NSString *)path toFolder:(WCFile *)destination;74 - (BOOL)_downloadFile:(WCFile *)file toFolder:(NSString *)destination preview:(BOOL)preview; 75 - (BOOL)_uploadPath:(NSString *)path toFolder:(WCFile *)destination; 76 76 77 77 - (void)_runDownload:(WCTransfer *)transfer; … … 501 501 #pragma mark - 502 502 503 - ( void)_downloadFile:(WCFile *)filepreview:(BOOL)preview {504 NSString * destination, *path;503 - (BOOL)_downloadFile:(WCFile *)file toFolder:(NSString *)destination preview:(BOOL)preview { 504 NSString *path; 505 505 WIURL *url; 506 506 WCTransfer *transfer; … … 513 513 [self _presentError:error]; 514 514 515 return; 516 } 517 518 if(preview) { 519 destination = NSTemporaryDirectory(); 520 path = [destination stringByAppendingPathComponent:[file name]]; 521 } else { 522 destination = [[WCSettings objectForKey:WCDownloadFolder] stringByStandardizingPath]; 523 path = [destination stringByAppendingPathComponent:[file name]]; 524 } 515 return NO; 516 } 517 518 path = [destination stringByAppendingPathComponent:[file name]]; 525 519 526 520 if([[NSFileManager defaultManager] fileExistsAtPath:path isDirectory:&isDirectory]) { … … 529 523 [self _presentError:error]; 530 524 531 return ;525 return NO; 532 526 } 533 527 } … … 573 567 574 568 [_transfersTableView reloadData]; 575 } 576 577 578 579 - (void)_uploadPath:(NSString *)path toFolder:(WCFile *)destination { 569 570 return YES; 571 } 572 573 574 575 - (BOOL)_uploadPath:(NSString *)path toFolder:(WCFile *)destination { 580 576 NSEnumerator *enumerator; 581 577 NSString *eachPath, *remotePath, *localPath, *serverPath, *resourceForkPath = NULL; … … 591 587 [self _presentError:error]; 592 588 593 return ;589 return NO; 594 590 } 595 591 … … 673 669 674 670 [_transfersTableView reloadData]; 671 672 return YES; 675 673 } 676 674 … … 1407 1405 #pragma mark - 1408 1406 1409 - (void)downloadFile:(WCFile *)file { 1410 [self _downloadFile:file preview:NO]; 1411 } 1412 1413 1414 1415 - (void)previewFile:(WCFile *)file { 1416 [self _downloadFile:file preview:YES]; 1417 } 1418 1419 1420 1421 - (void)uploadPath:(NSString *)path toFolder:(WCFile *)destination { 1422 [self _uploadPath:path toFolder:destination]; 1407 - (BOOL)downloadFile:(WCFile *)file { 1408 return [self _downloadFile:file toFolder:[[WCSettings objectForKey:WCDownloadFolder] stringByStandardizingPath] preview:NO]; 1409 } 1410 1411 1412 1413 - (BOOL)downloadFile:(WCFile *)file toFolder:(NSString *)destination { 1414 return [self _downloadFile:file toFolder:destination preview:NO]; 1415 } 1416 1417 1418 1419 - (BOOL)previewFile:(WCFile *)file { 1420 return [self _downloadFile:file toFolder:NSTemporaryDirectory() preview:YES]; 1421 } 1422 1423 1424 1425 - (BOOL)uploadPath:(NSString *)path toFolder:(WCFile *)destination { 1426 return [self _uploadPath:path toFolder:destination]; 1423 1427 } 1424 1428 WiredClient/trunk/WiredClient.xcodeproj/project.pbxproj
r4156 r4180 73 73 77B5F973097FDD4500C055E1 /* NSString-WCAdditions.m in Sources */ = {isa = PBXBuildFile; fileRef = 77B5F971097FDD4500C055E1 /* NSString-WCAdditions.m */; }; 74 74 77E170E90980F3120044D290 /* NSNotificationCenter-WCAdditions.m in Sources */ = {isa = PBXBuildFile; fileRef = 77E170E70980F3120044D290 /* NSNotificationCenter-WCAdditions.m */; }; 75 77E2888E0A2D9E9B00035403 /* WCFilesTableView.m in Sources */ = {isa = PBXBuildFile; fileRef = 77E2888C0A2D9E9B00035403 /* WCFilesTableView.m */; }; 75 76 77E555BC075346E4009A7557 /* GreenDrop.tiff in Resources */ = {isa = PBXBuildFile; fileRef = 77E555BB075346E4009A7557 /* GreenDrop.tiff */; }; 76 77 77E555C5075346F3009A7557 /* YellowDrop.tiff in Resources */ = {isa = PBXBuildFile; fileRef = 77E555C4075346F3009A7557 /* YellowDrop.tiff */; }; … … 321 322 77E170E70980F3120044D290 /* NSNotificationCenter-WCAdditions.m */ = {isa = PBXFileReference; fileEncoding = 5; lastKnownFileType = sourcecode.c.objc; path = "NSNotificationCenter-WCAdditions.m"; sourceTree = "<group>"; }; 322 323 77E170E80980F3120044D290 /* NSNotificationCenter-WCAdditions.h */ = {isa = PBXFileReference; fileEncoding = 5; lastKnownFileType = sourcecode.c.h; path = "NSNotificationCenter-WCAdditions.h"; sourceTree = "<group>"; }; 324 77E2888C0A2D9E9B00035403 /* WCFilesTableView.m */ = {isa = PBXFileReference; fileEncoding = 5; lastKnownFileType = sourcecode.c.objc; path = WCFilesTableView.m; sourceTree = "<group>"; }; 325 77E2888D0A2D9E9B00035403 /* WCFilesTableView.h */ = {isa = PBXFileReference; fileEncoding = 5; lastKnownFileType = sourcecode.c.h; path = WCFilesTableView.h; sourceTree = "<group>"; }; 323 326 77E555BB075346E4009A7557 /* GreenDrop.tiff */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; path = GreenDrop.tiff; sourceTree = "<group>"; }; 324 327 77E555C4075346F3009A7557 /* YellowDrop.tiff */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; path = YellowDrop.tiff; sourceTree = "<group>"; }; … … 800 803 777E65790740F34700A8DE0B /* WCFilesBrowserCell.m */, 801 804 777E65780740F34700A8DE0B /* WCFilesBrowserCell.h */, 805 77E2888C0A2D9E9B00035403 /* WCFilesTableView.m */, 806 77E2888D0A2D9E9B00035403 /* WCFilesTableView.h */, 802 807 A5DC7EF5057AAF6C00736BBF /* WCPreview.m */, 803 808 A5DC7F00057AAF6C00736BBF /* WCPreview.h */, … … 1417 1422 A5DC7FCE057AB0F200736BBF /* WCApplication.m in Sources */, 1418 1423 A5DC7EC8057AAEAD00736BBF /* WCApplicationController.m in Sources */, 1419 777E657B0740F34700A8DE0B /* WCFilesBrowserCell.m in Sources */,1420 1424 A57512EC05E4E64D003B51D7 /* WCCache.m in Sources */, 1421 1425 A5DC7F25057AAFE100736BBF /* WCChat.m in Sources */, … … 1429 1433 A5DC7F0C057AAF6C00736BBF /* WCFileInfo.m in Sources */, 1430 1434 A5DC7F0E057AAF6C00736BBF /* WCFiles.m in Sources */, 1435 777E657B0740F34700A8DE0B /* WCFilesBrowserCell.m in Sources */, 1436 77E2888E0A2D9E9B00035403 /* WCFilesTableView.m in Sources */, 1431 1437 A5A335EA071C484700A16E9A /* WCKeychain.m in Sources */, 1432 1438 A57D217107C950BD002C306E /* WCLink.m in Sources */,
