aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil Hodgson <nyamatongwe@gmail.com>2019-03-11 09:26:08 +1100
committerNeil Hodgson <nyamatongwe@gmail.com>2019-03-11 09:26:08 +1100
commitc9ca7b34a0c5c0da60fe6d8bbf38df2424b76864 (patch)
treea783a2871b4f90ea00d228f055e66fc5f7c3533d
parentdb10b2d70effe2cdb616667780a1146969cf0a89 (diff)
downloadscintilla-mirror-c9ca7b34a0c5c0da60fe6d8bbf38df2424b76864.tar.gz
Make idle processing more efficient on Cocoa by only notifying the relevant
Scintilla instance.
-rw-r--r--cocoa/ScintillaCocoa.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/cocoa/ScintillaCocoa.mm b/cocoa/ScintillaCocoa.mm
index 9a7125023..b7b595b62 100644
--- a/cocoa/ScintillaCocoa.mm
+++ b/cocoa/ScintillaCocoa.mm
@@ -316,7 +316,7 @@ const CGFloat paddingHighlightY = 2;
// main thread). We need that later for idle event processing.
NSNotificationCenter *center = [NSNotificationCenter defaultCenter];
notificationQueue = [[NSNotificationQueue alloc] initWithNotificationCenter: center];
- [center addObserver: self selector: @selector(idleTriggered:) name: @"Idle" object: nil];
+ [center addObserver: self selector: @selector(idleTriggered:) name: @"Idle" object: self];
}
return self;
}