mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
Set the encoding window controller as window delegate
No reason for this other than it seems right.
This commit is contained in:
@@ -213,7 +213,7 @@ static NSTextView* MyCreateTextView ()
|
||||
}
|
||||
@end
|
||||
|
||||
@interface EncodingWindowController ()
|
||||
@interface EncodingWindowController () <NSWindowDelegate>
|
||||
{
|
||||
OBJC_WATCH_LEAKS(EncodingWindowController);
|
||||
char const* first;
|
||||
@@ -283,6 +283,7 @@ static NSTextView* MyCreateTextView ()
|
||||
|
||||
[self.window.contentView addSubview:contentView];
|
||||
self.window.defaultButtonCell = self.openButton.cell;
|
||||
self.window.delegate = self;
|
||||
|
||||
[self.popUpButton bind:@"encoding" toObject:_objectController withKeyPath:@"content.encoding" options:nil];
|
||||
[self.learnCheckBox bind:NSValueBinding toObject:_objectController withKeyPath:@"content.trainClassifier" options:nil];
|
||||
|
||||
Reference in New Issue
Block a user