removed unused callback code for scrolling

This commit is contained in:
michael starke
2016-02-29 15:45:40 +01:00
parent c392e32e9a
commit 169a830831

View File

@@ -17,18 +17,6 @@
@implementation MPOutlineView @implementation MPOutlineView
- (void)dealloc {
[[NSNotificationCenter defaultCenter] removeObserver:self];
}
- (void)viewDidMoveToSuperview {
[[NSNotificationCenter defaultCenter] removeObserver:self];
if(self.enclosingScrollView) {
[self _setupNotifications];
}
}
- (void)mouseDown:(NSEvent *)theEvent { - (void)mouseDown:(NSEvent *)theEvent {
[super mouseDown:theEvent]; [super mouseDown:theEvent];
if(_didBecomeFirstResponder) { if(_didBecomeFirstResponder) {
@@ -48,15 +36,4 @@
return [super resignFirstResponder]; return [super resignFirstResponder];
} }
- (void)_setupNotifications {
[[NSNotificationCenter defaultCenter] removeObserver:self];
if(self.enclosingScrollView.contentView) {
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(_didChangeFrame:) name:NSViewBoundsDidChangeNotification object:self.enclosingScrollView.contentView];
}
}
- (void)_didChangeFrame:(NSNotification *)notification {
NSLog(@"DidChangeFrame:%@", NSStringFromRect(self.bounds));
}
@end @end