diff options
| author | Neil Hodgson <nyamatongwe@gmail.com> | 2019-03-11 09:26:08 +1100 |
|---|---|---|
| committer | Neil Hodgson <nyamatongwe@gmail.com> | 2019-03-11 09:26:08 +1100 |
| commit | 0d576da3c26a087622d81ce65b1e6bb5190be73d (patch) | |
| tree | 434d0c5ddf43f8926b5e806c9ca1abed38dc7ea8 | |
| parent | 3cda62ba44addd92b3951370c1a0ade9b18977be (diff) | |
| download | scintilla-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.mm | 2 |
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; } |
