mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 09:22:33 +00:00
removed unused callback code for scrolling
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user