// // BWGradientBoxIntegration.m // BWToolkit // // Created by Brandon Walkin (www.brandonwalkin.com) // All code is provided under the New BSD license. // #import #import "BWGradientBox.h" #import "BWGradientBoxInspector.h" @implementation BWGradientBox (BWGradientBoxIntegration) - (void)ibPopulateKeyPaths:(NSMutableDictionary *)keyPaths { [super ibPopulateKeyPaths:keyPaths]; [[keyPaths objectForKey:IBAttributeKeyPaths] addObjectsFromArray:[NSArray arrayWithObjects:@"topBorderColor", @"bottomBorderColor", @"fillStartingColor", @"fillEndingColor", @"fillColor", @"topInsetAlpha", @"bottomInsetAlpha", @"hasTopBorder", @"hasBottomBorder", @"hasGradient", nil]]; } - (void)ibPopulateAttributeInspectorClasses:(NSMutableArray *)classes { [super ibPopulateAttributeInspectorClasses:classes]; [classes addObject:[BWGradientBoxInspector class]]; } - (NSView *)ibDesignableContentView { return self; } @end