Fix some warnings.

This commit is contained in:
Damiano Galassi committed 2016-02-16 19:44:50 +01:00
1 parent 2077febc70
commit 60758e225b
13 files changed
+25 -18

No files matched your search

+10 -3
View File
@@ -70,10 +70,17 @@
NSMutableParagraphStyle *psL = [[[NSParagraphStyle defaultParagraphStyle] mutableCopy] autorelease];
psL.headIndent = -10.0;
psL.alignment = NSTextAlignmentLeft;
_detailBoldAttr = [@{NSFontAttributeName: [NSFont systemFontOfSize:[NSFont smallSystemFontSize] weight:NSFontWeightBold],
NSParagraphStyleAttributeName: psL,
NSForegroundColorAttributeName: [NSColor grayColor]} retain];
if ([[NSFont class] respondsToSelector:@selector(monospacedDigitSystemFontOfSize:weight:)]) {
_detailBoldAttr = [@{NSFontAttributeName: [NSFont systemFontOfSize:[NSFont smallSystemFontSize] weight:NSFontWeightBold],
NSParagraphStyleAttributeName: psL,
NSForegroundColorAttributeName: [NSColor grayColor]} retain];
}
else {
_detailBoldAttr = [@{NSFontAttributeName: [NSFont boldSystemFontOfSize:[NSFont smallSystemFontSize]],
NSParagraphStyleAttributeName: ps,
NSForegroundColorAttributeName: [NSColor grayColor]} retain];
}
if ([[NSFont class] respondsToSelector:@selector(monospacedDigitSystemFontOfSize:weight:)]) {
_detailMonospacedAttr = [@{NSFontAttributeName: [NSFont monospacedDigitSystemFontOfSize:[NSFont smallSystemFontSize] weight:NSFontWeightRegular],