forked from glebd/bwtoolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BWGradientBoxIntegration.m
34 lines (27 loc) · 1016 Bytes
/
BWGradientBoxIntegration.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
//
// BWGradientBoxIntegration.m
// BWToolkit
//
// Created by Brandon Walkin (www.brandonwalkin.com)
// All code is provided under the New BSD license.
//
#import <InterfaceBuilderKit/InterfaceBuilderKit.h>
#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", @"hasFillColor", nil]];
}
- (void)ibPopulateAttributeInspectorClasses:(NSMutableArray *)classes
{
[super ibPopulateAttributeInspectorClasses:classes];
[classes addObject:[BWGradientBoxInspector class]];
}
- (NSView *)ibDesignableContentView
{
return self;
}
@end