On Sun, 6 Sep 2020 22:47:11 GMT, Phil Race <p...@openjdk.org> wrote:

>> Marked as reviewed by serb (Reviewer).
>
> You say you need to use NSDistributedNotificationCenter but you don't. So I 
> am confused.

The problem of crash is about not having proper observer. As per
https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/Notifications/Articles/NotificationCenters.html
NSNotificationCenter delivers notifications to observers synchronously whereas 
NSDistributedNotificationCenter
notification is usually delivered to the main thread’s run loop, thus not 
depending on observer setup. Both will work
but since we use NSNotificationCenter in mac so far, it seems prudent to use 
the same methodology for this case too, so
I have rectified the observer setup.

-------------

PR: https://git.openjdk.java.net/jdk/pull/28

Reply via email to