From 10bfeaf8f7ea27893f8d17d427384b76a9d572f0 Mon Sep 17 00:00:00 2001 From: Aparajita Fishman Date: Thu, 10 Mar 2011 12:49:50 -0500 Subject: [PATCH] Added comment for non-obvious code, fixed option name in nib2cib --- AppKit/CPFont.j | 1 + Tools/nib2cib/main.j | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/AppKit/CPFont.j b/AppKit/CPFont.j index 9ded9499f..7cf8d38aa 100644 --- a/AppKit/CPFont.j +++ b/AppKit/CPFont.j @@ -311,6 +311,7 @@ var CPFontNameKey = @"CPFontNameKey", isBold = [aCoder decodeBoolForKey:CPFontIsBoldKey], isItalic = [aCoder decodeBoolForKey:CPFontIsItalicKey]; + // Substitute configured font for legacy font if (fontName === _CPFontDefaultSystemFontFace && _CPFontDefaultSystemFontFace !== _CPFontSystemFontFace) { fontName = _CPFontSystemFontFace; diff --git a/Tools/nib2cib/main.j b/Tools/nib2cib/main.j index ca179cb0d..c997c169d 100644 --- a/Tools/nib2cib/main.j +++ b/Tools/nib2cib/main.j @@ -54,7 +54,7 @@ parser.option("--mac", "format") .def(NibFormatUndetermined) .help("Set format to Mac"); -parser.option("--legacy", "conversionMode") +parser.option("--legacy", "layoutMode") .set(ConverterModeLegacy) .def(ConverterModeNew) .help("Use legacy code that does not preserve view positioning/sizing");