The first argument of addObserverForName_object_queue_usingBlock
is the notification name, so if you put mirror-did-update-document
, then you will only receive those ones.
If you want to filter out the ones that starts with NS
, you can do something like if (!String(notification.name()).startsWith('NS)) { console.log(notification.name()) }
.
But do keep in mind that those notification names are private APIs, just like the rest of the obj-c API 🙂