Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 30 lines (20 sloc) 0.907 kb
83837db @robrix ObjectBinder, an IB3 plugin to allow you to bind arbitrary keys on arbit...
authored
1 #import <InterfaceBuilderKit/InterfaceBuilderKit.h>
03b6ae4 @robrix Prefixed everything with RX.
authored
2 #import <RXObjectBinderFramework/RXObjectBinder.h>
3 #import "RXObjectBinderInspector.h"
83837db @robrix ObjectBinder, an IB3 plugin to allow you to bind arbitrary keys on arbit...
authored
4
5
03b6ae4 @robrix Prefixed everything with RX.
authored
6 @implementation RXObjectBinder (RXObjectBinder)
83837db @robrix ObjectBinder, an IB3 plugin to allow you to bind arbitrary keys on arbit...
authored
7
8 -(void)ibPopulateKeyPaths:(NSMutableDictionary *)keyPaths {
9 [super ibPopulateKeyPaths: keyPaths];
10
11 [[keyPaths objectForKey: IBAttributeKeyPaths] addObjectsFromArray: keys];
12 [[keyPaths objectForKey: IBToOneRelationshipKeyPaths] addObject: @"representedObject"];
13 }
14
15 -(void)ibPopulateAttributeInspectorClasses:(NSMutableArray *)classes {
16 [super ibPopulateAttributeInspectorClasses: classes];
03b6ae4 @robrix Prefixed everything with RX.
authored
17 [classes addObject: [RXObjectBinderInspector class]];
83837db @robrix ObjectBinder, an IB3 plugin to allow you to bind arbitrary keys on arbit...
authored
18 }
19
18ff99c @robrix Smoother, lighter flavour. Using -exposedBindings instead of +exposeBind...
authored
20
21 -(void)bind:(NSString *)binding toObject:(id)obj withKeyPath:(NSString *)keyPath options:(NSDictionary *)options {
22 [super bind: binding toObject: obj withKeyPath: keyPath options: options];
23 }
24
25 -(void)unbind:(NSString *)binding {
26 [super unbind: binding];
27 }
28
83837db @robrix ObjectBinder, an IB3 plugin to allow you to bind arbitrary keys on arbit...
authored
29 @end
Something went wrong with that request. Please try again.