mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-25 04:57:03 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user