Changeset 2266
- Timestamp:
- Jul 1, 2007, 1:27:26 PM (15 years ago)
- Location:
- trunk/macosx
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/Controller.m
r2264 r2266 546 546 } 547 547 548 //save history and stop running torrents548 //save history 549 549 [self updateTorrentHistory]; 550 550 551 //make sure torrent isclosed551 //make sure torrents are closed 552 552 enumerator = [fTorrents objectEnumerator]; 553 553 Torrent * torrent; -
trunk/macosx/CreatorWindowController.m
r2261 r2266 64 64 if (fInfo->fileCount == 0) 65 65 { 66 NSAlert * alert = [[ [NSAlert alloc] init] autorelease];66 NSAlert * alert = [[NSAlert alloc] init]; 67 67 [alert addButtonWithTitle: NSLocalizedString(@"OK", "Create torrent -> no files -> button")]; 68 68 [alert setMessageText: NSLocalizedString(@"This folder contains no files.", … … 73 73 74 74 [alert runModal]; 75 [alert release]; 75 76 76 77 [self release]; -
trunk/macosx/DragOverlayWindow.h
r2149 r2266 39 39 - (void) setURL: (NSString *) url; 40 40 41 - (void) fadeIn; 41 42 - (void) fadeOut; 42 43 -
trunk/macosx/DragOverlayWindow.m
r2244 r2266 126 126 } 127 127 128 [[self contentView] setOverlay: icon mainLine: name subLine: secondString]; 129 130 //stop other animation and set to same progress 131 if ([fFadeOutAnimation isAnimating]) 132 { 133 [fFadeOutAnimation stopAnimation]; 134 [fFadeInAnimation setCurrentProgress: 1.0 - [fFadeOutAnimation currentProgress]]; 135 } 136 [self setFrame: [[self parentWindow] frame] display: YES]; 137 [fFadeInAnimation startAnimation]; 128 [self fadeIn]; 138 129 } 139 130 140 131 - (void) setFile: (NSString *) file 141 132 { 142 143 133 [[self contentView] setOverlay: [NSImage imageNamed: @"CreateLarge.png"] 144 134 mainLine: NSLocalizedString(@"Create a Torrent File", "Drag overlay -> file") subLine: file]; 145 135 146 //stop other animation and set to same progress 147 if ([fFadeOutAnimation isAnimating]) 148 { 149 [fFadeOutAnimation stopAnimation]; 150 [fFadeInAnimation setCurrentProgress: 1.0 - [fFadeOutAnimation currentProgress]]; 151 } 152 [self setFrame: [[self parentWindow] frame] display: YES]; 153 [fFadeInAnimation startAnimation]; 136 [self fadeIn]; 154 137 } 155 138 … … 160 143 mainLine: NSLocalizedString(@"Web Address", "Drag overlay -> url") subLine: url]; 161 144 145 [self fadeIn]; 146 } 147 148 - (void) fadeIn 149 { 162 150 //stop other animation and set to same progress 163 151 if ([fFadeOutAnimation isAnimating]) -
trunk/macosx/Torrent.m
r2262 r2266 193 193 - (void) dealloc 194 194 { 195 # 195 #warning cleanup 196 196 if (fHandle) 197 197 {
Note: See TracChangeset
for help on using the changeset viewer.