forked from timthedevguy/BGHUDAppKit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BGHUDViewIntegration.m
40 lines (31 loc) · 1.43 KB
/
BGHUDViewIntegration.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
35
36
37
38
39
40
//
// BGHUDViewIntegration.m
// BGHUDAppKit
//
// Created by BinaryGod on 2/15/09.
// Copyright 2009 none. All rights reserved.
//
#import <InterfaceBuilderKit/InterfaceBuilderKit.h>
#import <BGHUDAppKit/BGHUDView.h>
#import "BGHUDViewInspector.h"
@implementation BGHUDView ( Private )
- (void)ibPopulateKeyPaths:(NSMutableDictionary *)keyPaths {
[super ibPopulateKeyPaths:keyPaths];
// Remove the comments and replace "MyFirstProperty" and "MySecondProperty"
// in the following line with a list of your view's KVC-compliant properties.
//[[keyPaths objectForKey:IBAttributeKeyPaths] addObjectsFromArray:[NSArray arrayWithObjects:/* @"MyFirstProperty", @"MySecondProperty",*/ nil]];
[[keyPaths objectForKey:IBAttributeKeyPaths] addObjectsFromArray:[NSArray arrayWithObjects: @"flipGradient", @"drawTopBorder",
@"drawBottomBorder", @"drawLeftBorder", @"drawRightBorder",
@"borderColor", @"drawTopShadow", @"drawBottomShadow",
@"drawLeftShadow", @"drawRightShadow", @"shadowColor", @"useTheme",
@"themeKey", @"color1", @"color2", nil]];
}
- (void)ibPopulateAttributeInspectorClasses:(NSMutableArray *)classes {
[super ibPopulateAttributeInspectorClasses:classes];
// Replace "BGHUDViewIntegrationInspector" with the name of your inspector class.
[classes addObject:[BGHUDViewInspector class]];
}
- (NSView *)ibDesignableContentView {
return self;
}
@end