mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
@@ -6,15 +6,10 @@
|
||||
#import <ns/ns.h>
|
||||
#import <text/utf8.h>
|
||||
|
||||
static NSString* const kBindingInfoControllerKey = @"controller";
|
||||
static NSString* const kBindingInfoBindingKey = @"binding";
|
||||
static NSString* const kBindingInfoKeyPathKey = @"keyPath";
|
||||
|
||||
static NSString* const kRecordingPlaceholderString = @"…";
|
||||
|
||||
@interface OakKeyEquivalentView ()
|
||||
{
|
||||
NSMutableArray* _observers;
|
||||
NSRect _clearButtonRect;
|
||||
void* _hotkeyToken;
|
||||
BOOL _mouseDown;
|
||||
@@ -32,12 +27,6 @@ static NSString* const kRecordingPlaceholderString = @"…";
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void)dealloc
|
||||
{
|
||||
for(NSDictionary* info in _observers)
|
||||
[info[kBindingInfoControllerKey] removeObserver:self forKeyPath:info[kBindingInfoKeyPathKey]];
|
||||
}
|
||||
|
||||
- (NSSize)intrinsicContentSize
|
||||
{
|
||||
return NSMakeSize(NSViewNoInstrinsicMetric, 22);
|
||||
|
||||
Reference in New Issue
Block a user