

#import <Cocoa/Cocoa.h>

// An MBProject has a valid state for a directory which we want to use
// to change the display color.  Using KVC we connect an MBProject and
// the project window, which displays a rep of the project.  However,
// if the MBProject (M in MVC) directly hands the project window (V in
// MVC) a color, we break the MVC model.  The NSValueTransformer,
// which sits between them (and is also a V in MVC), helps us maintain
// our abstraction by converting a valid state to a color.
@interface MBValidToColorTransformer : NSValueTransformer

+ (Class)transformedValueClass;
+ (BOOL)allowsReverseTransformation;

@end

