Fixes and enhancements

- When a xib/nib is deleted, the corresponding cib is deleted.
- Fixed the calculation of the output path when given a relative path.
- Works with .nib files now.
- Works with -R option now. NSCustomResource was assuming an image path would always be relative to cwd().
- The Resources directory is always inferred from the input path, so the -R option is usually unnecessary.
- Added --default-theme option.
- Multiple extra themes can be specified with the --theme option.
- Verbose mode displays the inferred application and resources paths, and the source theme used when doing font substitutions.
- Added a man page.
- Themes are read using StaticResource instead of parsing the file myself.
- Error message tweaks.
This commit is contained in:
Aparajita Fishman
2011-04-05 16:57:16 -04:00
parent ab105e7273
commit af6d38fd16
6 changed files with 507 additions and 137 deletions
+3 -3
View File
@@ -44,7 +44,7 @@ ConverterConversionException = @"ConverterConversionException";
CPString outputPath @accessors;
CPString resourcesPath @accessors;
NibFormat format @accessors(readonly);
CPTheme theme @accessors(readonly);
CPArray themes @accessors(readonly);
}
+ (Converter)sharedConverter
@@ -55,7 +55,7 @@ ConverterConversionException = @"ConverterConversionException";
return SharedConverter;
}
- (id)initWithInputPath:(CPString)aPath format:(NibFormat)nibFormat theme:(CPTheme)aTheme
- (id)initWithInputPath:(CPString)aPath format:(NibFormat)nibFormat themes:(CPArray)themeList
{
self = [super init];
@@ -63,7 +63,7 @@ ConverterConversionException = @"ConverterConversionException";
{
inputPath = aPath;
format = nibFormat;
theme = aTheme;
themes = themeList;
}
return self;