From c9ca7b34a0c5c0da60fe6d8bbf38df2424b76864 Mon Sep 17 00:00:00 2001 From: Neil Hodgson Date: Mon, 11 Mar 2019 09:26:08 +1100 Subject: Make idle processing more efficient on Cocoa by only notifying the relevant Scintilla instance. --- cocoa/ScintillaCocoa.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3