Platforms to show: All Mac Windows Linux Cross-Platform

NSNotificationObserverMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Notifications MBS MacBase Plugin 9.7 ✅ Yes ❌ No ❌ No ✅ Yes All
The notification class which you use to receive notifications.

To use this class, please create a subclass. There you can put code in the event handler to do whatever you need in case your notification is received.

Than you create in code objects form this class. Normally only one. And you call addObserver on the NSNotificationCenterMBS or NSDistributedNotificationCenterMBS objects you have to tell the system which notifications you want to receive.

Do not forget to call removeObserver on the notification center for all your observers to avoid crashes.

This class has no sub classes.

Some methods using this class:

Some examples using this class:

Blog Entries

Release notes

The items on this page are in the following plugins: MBS MacBase Plugin.

NSNotificationMBS   -   NSOpenPanelMBS

The biggest plugin in space...