//
//  OxPathControllerIntegration.m
//  Oaxaca2IB
//
//  Created by Nicholas Matsakis on 1/31/09.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import <InterfaceBuilderKit/InterfaceBuilderKit.h>
#import <Oaxaca2IB/Oaxaca2IBView.h>
#import "OxPathControllerInspector.h"
#import "OxPathController.h"
#import "OxNSArray.h"

@implementation OxPathController (Oaxaca2IB)

- (void)ibPopulateKeyPaths:(NSMutableDictionary *)keyPaths {
    [super ibPopulateKeyPaths:keyPaths];

	// Almost all the bindings are also key paths.
	NSArray *exposedBindings = [self exposedBindings];
	exposedBindings = [exposedBindings arrayByRemovingObjectsFromArray:[NSArray arrayWithObjects:@"file", @"files", nil]];
    [[keyPaths objectForKey:IBAttributeKeyPaths] addObjectsFromArray:exposedBindings];
}

- (void)ibPopulateAttributeInspectorClasses:(NSMutableArray *)classes {
    [super ibPopulateAttributeInspectorClasses:classes];
    [classes addObject:[OxPathControllerInspector class]];
}

@end
