Changeset 3215
- Timestamp:
- Sep 28, 2007, 1:05:01 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/PeerProgressIndicatorCell.m
r3214 r3215 43 43 if ([[NSUserDefaults standardUserDefaults] boolForKey: @"DisplayPeerProgressBarNumber"]) 44 44 { 45 NSMutableParagraphStyle *centeredStyle = [[[NSMutableParagraphStyle alloc] init] autorelease];46 [centeredStyle setAlignment:NSCenterTextAlignment];47 48 45 if (!fAttributes) 49 fAttributes = [ NSDictionary dictionaryWithObject: [NSFont systemFontOfSize: 11.0] forKey: NSFontAttributeName];46 fAttributes = [[NSDictionary alloc] initWithObjectsAndKeys: [NSFont systemFontOfSize: 11.0], NSFontAttributeName, nil]; 50 47 [[NSString stringWithFormat: @"%.1f%%", [self floatValue] * 100.0] drawInRect: cellFrame withAttributes: fAttributes]; 51 48 }
Note: See TracChangeset
for help on using the changeset viewer.