mirror of
https://github.com/textmate/textmate.git
synced 2026-01-23 05:37:55 -05:00
33 lines
679 B
Plaintext
33 lines
679 B
Plaintext
#import "PropertiesViewController.h"
|
|
#import <OakAppKit/OakKeyEquivalentView.h>
|
|
|
|
@implementation PropertiesViewController
|
|
@synthesize properties;
|
|
|
|
- (id)initWithName:(NSString*)aName
|
|
{
|
|
if((self = [super initWithNibName:aName bundle:[NSBundle bundleForClass:[self class]]]))
|
|
{
|
|
properties = [NSMutableDictionary new];
|
|
}
|
|
return self;
|
|
}
|
|
|
|
- (CGFloat)indent
|
|
{
|
|
return alignmentView ? NSMaxX([alignmentView frame]) + 5 : 20;
|
|
}
|
|
|
|
- (NSDictionary*)properties
|
|
{
|
|
[objectController commitEditing];
|
|
return properties;
|
|
}
|
|
|
|
- (void)loadView
|
|
{
|
|
[super loadView];
|
|
[keyEquivalentView bind:NSValueBinding toObject:objectController withKeyPath:@"selection.keyEquivalent" options:nil];
|
|
}
|
|
@end
|