Fix things on 10.10 and earlier.

This commit is contained in:
Damiano Galassi committed 2016-01-09 13:37:54 +01:00
1 parent e45dbdab91
commit b9f38cbec0
3 files changed
+40 -15

No files matched your search

+10 -3
View File
@@ -21,9 +21,16 @@
[ps setHeadIndent: -10.0];
[ps setAlignment:NSRightTextAlignment];
detailBoldAttr = [@{ NSFontAttributeName: [NSFont monospacedDigitSystemFontOfSize:[NSFont smallSystemFontSize] weight:NSFontWeightBold],
NSParagraphStyleAttributeName: ps,
NSForegroundColorAttributeName: [NSColor grayColor] } retain];
if ([[NSFont class] respondsToSelector:@selector(monospacedDigitSystemFontOfSize:weight:)]) {
detailBoldAttr = [@{ NSFontAttributeName: [NSFont monospacedDigitSystemFontOfSize:[NSFont smallSystemFontSize] weight:NSFontWeightBold],
NSParagraphStyleAttributeName: ps,
NSForegroundColorAttributeName: [NSColor grayColor] } retain];
}
else {
detailBoldAttr = [@{ NSFontAttributeName: [NSFont boldSystemFontOfSize:[NSFont smallSystemFontSize]],
NSParagraphStyleAttributeName: ps,
NSForegroundColorAttributeName: [NSColor grayColor] } retain];
}
chapterTableView.defaultEditingColumn = 1;
}