mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 18:42:24 +00:00
removed unused callback code for scrolling
This commit is contained in:
@@ -17,18 +17,6 @@
|
||||
|
||||
@implementation MPOutlineView
|
||||
|
||||
- (void)dealloc {
|
||||
[[NSNotificationCenter defaultCenter] removeObserver:self];
|
||||
}
|
||||
|
||||
|
||||
- (void)viewDidMoveToSuperview {
|
||||
[[NSNotificationCenter defaultCenter] removeObserver:self];
|
||||
if(self.enclosingScrollView) {
|
||||
[self _setupNotifications];
|
||||
}
|
||||
}
|
||||
|
||||
- (void)mouseDown:(NSEvent *)theEvent {
|
||||
[super mouseDown:theEvent];
|
||||
if(_didBecomeFirstResponder) {
|
||||
@@ -48,15 +36,4 @@
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user