Changeset 9812
- Timestamp:
- Dec 23, 2009, 2:02:11 AM (13 years ago)
- Location:
- trunk/macosx
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/AboutWindowController.m
r9003 r9812 48 48 49 49 //size license button 50 CGFloat oldButtonWidth = [fLicenseButton frame].size.width;50 const CGFloat oldButtonWidth = [fLicenseButton frame].size.width; 51 51 52 52 [fLicenseButton setTitle: NSLocalizedString(@"License", "About window -> license button")]; … … 54 54 55 55 NSRect buttonFrame = [fLicenseButton frame]; 56 buttonFrame.size.width += 10.0 f;57 buttonFrame.origin.x -= buttonFrame.size.width- oldButtonWidth;56 buttonFrame.size.width += 10.0; 57 buttonFrame.origin.x -= NSWidth(buttonFrame) - oldButtonWidth; 58 58 [fLicenseButton setFrame: buttonFrame]; 59 59 } -
trunk/macosx/BlocklistDownloaderViewController.m
r9316 r9812 48 48 [fButton setTitle: NSLocalizedString(@"Cancel", "Blocklist -> cancel button")]; 49 49 50 const CGFloat oldWidth = [fButton frame].size.width;50 const CGFloat oldWidth = NSWidth([fButton frame]); 51 51 [fButton sizeToFit]; 52 52 NSRect buttonFrame = [fButton frame]; 53 buttonFrame.size.width += 12.0 f; //sizeToFit sizes a bit too small54 buttonFrame.origin.x -= buttonFrame.size.width- oldWidth;53 buttonFrame.size.width += 12.0; //sizeToFit sizes a bit too small 54 buttonFrame.origin.x -= NSWidth(buttonFrame) - oldWidth; 55 55 [fButton setFrame: buttonFrame]; 56 56 -
trunk/macosx/Controller.m
r9799 r9812 4091 4091 4092 4092 //hack to ensure scrollbars don't disappear after resizing 4093 [scrollView setAutohidesScrollers: NO]; 4094 [scrollView setAutohidesScrollers: YES]; 4093 if (![NSApp isOnSnowLeopardOrBetter]) 4094 { 4095 [scrollView setAutohidesScrollers: NO]; 4096 [scrollView setAutohidesScrollers: YES]; 4097 } 4095 4098 } 4096 4099 } -
trunk/macosx/DragOverlayWindow.m
r9610 r9812 146 146 - (void) setURL: (NSString *) url 147 147 { 148 #warning get magnet image/phrase149 148 [[self contentView] setOverlay: [NSImage imageNamed: @"Globe.png"] 150 149 mainLine: NSLocalizedString(@"Web Address", "Drag overlay -> url") subLine: url]; -
trunk/macosx/TorrentTableView.m
r9807 r9812 241 241 continue; 242 242 243 NSDictionary * userInfo = [NSDictionary dictionaryWithObject: [NSNumber numberWith UnsignedInteger: row] forKey: @"Row"];243 NSDictionary * userInfo = [NSDictionary dictionaryWithObject: [NSNumber numberWithInteger: row] forKey: @"Row"]; 244 244 TorrentCell * cell = (TorrentCell *)[self preparedCellAtColumn: -1 row: row]; 245 245 [cell addTrackingAreasForView: self inRect: [self rectOfRow: row] withUserInfo: userInfo mouseLocation: mouseLocation]; … … 288 288 if ((row = [dict objectForKey: @"Row"])) 289 289 { 290 NSInteger rowVal = [row int Value];290 NSInteger rowVal = [row integerValue]; 291 291 NSString * type = [dict objectForKey: @"Type"]; 292 292 if ([type isEqualToString: @"Action"]) … … 316 316 fMouseRevealRow = -1; 317 317 318 [self setNeedsDisplayInRect: [self rectOfRow: [row int Value]]];318 [self setNeedsDisplayInRect: [self rectOfRow: [row integerValue]]]; 319 319 } 320 320 } … … 412 412 if ([item isKindOfClass: [Torrent class]]) 413 413 { 414 NSInteger index = [self rowForItem: item];414 const NSInteger index = [self rowForItem: item]; 415 415 if (index != -1) 416 416 [indexSet addIndex: index]; … … 418 418 else 419 419 { 420 NSInteger group = [item groupIndex];420 const NSInteger group = [item groupIndex]; 421 421 for (NSInteger i = 0; i < [self numberOfRows]; i++) 422 422 { 423 if ([indexSet containsIndex: i])424 continue;425 426 423 id tableItem = [self itemAtRow: i]; 427 if ( ![tableItem isKindOfClass: [Torrentclass]] && group == [tableItem groupIndex])424 if ([tableItem isKindOfClass: [TorrentGroup class]] && group == [tableItem groupIndex]) 428 425 { 429 426 [indexSet addIndex: i];
Note: See TracChangeset
for help on using the changeset viewer.