Changeset 13249
- Timestamp:
- Mar 10, 2012, 1:36:26 PM (9 years ago)
- Location:
- trunk/macosx
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/BlocklistDownloaderViewController.m
r13248 r13249 38 38 @implementation BlocklistDownloaderViewController 39 39 40 #warning make gcd singleton 40 #warning make gcd singleton? 41 BlocklistDownloaderViewController * fDLViewController = nil; 41 42 + (void) downloadWithPrefsController: (PrefsController *) prefsController 42 43 { 43 BlocklistDownloaderViewController * downloader = [[BlocklistDownloaderViewController alloc] initWithPrefsController: prefsController]; 44 [downloader startDownload]; 44 if (!fDLViewController) 45 { 46 fDLViewController = [[BlocklistDownloaderViewController alloc] initWithPrefsController: prefsController]; 47 [fDLViewController startDownload]; 48 } 45 49 } 46 50 … … 103 107 [fStatusWindow orderOut: self]; 104 108 109 fDLViewController = nil; 105 110 } 106 111 … … 149 154 { 150 155 [[alert window] orderOut: self]; 156 157 fDLViewController = nil; 151 158 } 152 159 -
trunk/macosx/BonjourController.m
r13248 r13249 27 27 @implementation BonjourController 28 28 29 #warning make gcd singleton30 29 BonjourController * fDefaultController = nil; 31 30 + (BonjourController *) defaultController 32 31 { 33 if (!fDefaultController) 32 static dispatch_once_t onceToken; 33 dispatch_once(&onceToken, ^{ 34 34 fDefaultController = [[BonjourController alloc] init]; 35 }); 36 35 37 return fDefaultController; 36 38 } -
trunk/macosx/PeerProgressIndicatorCell.m
r13248 r13249 26 26 #import "NSStringAdditions.h" 27 27 28 #import "transmission.h" // required by utils.h29 #import "utils.h"30 31 28 @implementation PeerProgressIndicatorCell 32 29 … … 54 51 { 55 52 //attributes not needed anymore 56 if (fAttributes) 57 { 58 fAttributes = nil; 59 } 53 fAttributes = nil; 60 54 61 55 [super drawWithFrame: cellFrame inView: controlView]; -
trunk/macosx/ProgressGradients.m
r13248 r13249 39 39 alpha: alpha]; 40 40 41 NSGradient * progressGradient = [[NSGradient alloc] initWithColorsAndLocations: baseColor, 0.0, color2, 0.5, color3, 0.5, 42 baseColor, 1.0, nil]; 43 return progressGradient; 41 return [[NSGradient alloc] initWithColorsAndLocations: baseColor, 0.0, color2, 0.5, color3, 0.5, baseColor, 1.0, nil]; 44 42 } 45 43 -
trunk/macosx/TorrentTableView.m
r13248 r13249 90 90 { 91 91 [[NSNotificationCenter defaultCenter] removeObserver: self]; 92 93 94 95 96 97 92 } 98 93
Note: See TracChangeset
for help on using the changeset viewer.