- Timestamp:
- Sep 3, 2006, 5:06:43 PM (16 years ago)
- Location:
- trunk/macosx
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/English.lproj/MessageWindow.nib/classes.nib
r828 r842 7 7 LANGUAGE = ObjC; 8 8 OUTLETS = { 9 fDebugWarningField = NSTextField; 10 fDebugWarningIcon = NSImageView; 9 11 fLevelButton = NSPopUpButton; 10 12 fScrollView = NSScrollView; -
trunk/macosx/InfoWindowController.m
r841 r842 64 64 65 65 fTorrents = [[NSArray alloc] init]; 66 fPeers = [[NSMutableArray alloc] initWithCapacity: 6];66 fPeers = [[NSMutableArray alloc] initWithCapacity: 30]; 67 67 fFiles = [[NSMutableArray alloc] initWithCapacity: 6]; 68 68 [fFileTable setDoubleAction: @selector(revealFile:)]; -
trunk/macosx/MessageWindowController.h
r829 r842 36 36 37 37 int fLines; 38 39 IBOutlet NSTextField * fDebugWarningField; 40 IBOutlet NSImageView * fDebugWarningIcon; 38 41 } 39 42 -
trunk/macosx/MessageWindowController.m
r841 r842 30 30 #define LEVEL_DEBUG 2 31 31 32 #define UPDATE_SECONDS 0. 3532 #define UPDATE_SECONDS 0.4 33 33 #define MAX_LINES 1000 34 35 @interface MessageWindowController (Private) 36 37 - (void) setDebugWarningHidden: (BOOL) hide; 38 39 @end 34 40 35 41 @implementation MessageWindowController … … 80 86 [[NSUserDefaults standardUserDefaults] setInteger: level forKey: @"MessageLevel"]; 81 87 } 88 89 [self setDebugWarningHidden: level != TR_MSG_DBG]; 82 90 83 91 tr_setMessageLevel(level); … … 116 124 if (fLines == MAX_LINES) 117 125 { 118 NSString * text = [fTextView string]; 119 unsigned int loc = [text rangeOfString: @"\n"].location; 126 unsigned int loc = [[fTextView string] rangeOfString: @"\n"].location; 120 127 if (loc != NSNotFound) 121 128 [[fTextView textStorage] deleteCharactersInRange: NSMakeRange(0, loc + 1)]; … … 145 152 else 146 153 level = TR_MSG_ERR; 154 155 [self setDebugWarningHidden: level != TR_MSG_DBG]; 147 156 148 157 tr_setMessageLevel(level); … … 188 197 } 189 198 199 - (void) setDebugWarningHidden: (BOOL) hide 200 { 201 [fDebugWarningField setHidden: hide]; 202 [fDebugWarningIcon setHidden: hide]; 203 } 204 190 205 @end -
trunk/macosx/Torrent.m
r835 r842 437 437 - (NSString *) torrentLocationString 438 438 { 439 return fPrivateTorrent ? @"Transmission Support Folder" 440 : [fPublicTorrentLocation stringByAbbreviatingWithTildeInPath]; 439 return fPrivateTorrent ? @"Transmission Support Folder" : [fPublicTorrentLocation stringByAbbreviatingWithTildeInPath]; 441 440 } 442 441 … … 531 530 { 532 531 peer = peers[i]; 533 534 532 [peerDics addObject: [NSDictionary dictionaryWithObjectsAndKeys: 535 533 [NSNumber numberWithBool: peer.isConnected], @"Connected", … … 641 639 { 642 640 file = fInfo->files[i]; 643 [files addObject: [NSDictionary dictionaryWithObjectsAndKeys: [[self downloadFolder]644 stringByAppendingPathComponent: [NSString stringWithUTF8String: file.name]], @"Name",641 [files addObject: [NSDictionary dictionaryWithObjectsAndKeys: 642 [[self downloadFolder] stringByAppendingPathComponent: [NSString stringWithUTF8String: file.name]], @"Name", 645 643 [NSNumber numberWithUnsignedLongLong: file.length], @"Size", nil]]; 646 644 } -
trunk/macosx/TorrentCell.m
r839 r842 91 91 fProgressEndAdvanced = [NSImage imageNamed: @"ProgressBarEndAdvanced.png"]; 92 92 93 fErrorImage = [ NSImage imageNamed: @"Error.tiff"];93 fErrorImage = [[NSImage imageNamed: @"Error.tiff"] copy]; 94 94 [fErrorImage setFlipped: YES]; 95 95 } 96 96 return self; 97 } 98 99 - (void) dealloc 100 { 101 [fErrorImage release]; 102 [super dealloc]; 97 103 } 98 104
Note: See TracChangeset
for help on using the changeset viewer.