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
commit0d576da3c26a087622d81ce65b1e6bb5190be73d (patch)
tree434d0c5ddf43f8926b5e806c9ca1abed38dc7ea8
parent3cda62ba44addd92b3951370c1a0ade9b18977be (diff)
downloadscintilla-mirror-0d576da3c26a087622d81ce65b1e6bb5190be73d.tar.gz
Backport: Make idle processing more efficient on Cocoa by only notifying the relevant
Scintilla instance. Backport of changeset 7312:fac795d055c5.
-rw-r--r--cocoa/ScintillaCocoa.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/cocoa/ScintillaCocoa.mm b/cocoa/ScintillaCocoa.mm
index 8d061205a..d262e79b2 100644
--- a/cocoa/ScintillaCocoa.mm
+++ b/cocoa/ScintillaCocoa.mm
@@ -324,7 +324,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;
}