Platforms to show: All Mac Windows Linux Cross-Platform

NSNotificationMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Notifications MBS MacBase Plugin 9.7 ✅ Yes ❌ No ❌ No ✅ Yes All
NSNotification objects encapsulate information so that it can be broadcast to other objects by an NSNotificationCenter object.

An NSNotification object (referred to as a notification) contains a name, an object, and an optional dictionary. The name is a tag identifying the notification. The object is any object that the poster of the notification wants to send to observers of that notification (typically, it is the object that posted the notification). The dictionary stores other related objects, if any. NSNotification objects are immutable objects.

You can create a notification object with the class method notificationWithName. However, you don't usually create your own notifications directly. The NSNotificationCenter method postNotificationName allow you to conveniently post a notification without creating it first.

On Windows you can use WinNotificationMBS class for similar functionality.

This is for sending broadcast messages from one application to other application on same computer.
For the notification center in Mac OS X 10.8, please use NSUserNotificationMBS class.

This class has no sub classes.

Some methods using this class:

Some events using this class:

Some examples using this class:

Blog Entries


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


NSNotificationCenterMBS   -   NSNotificationObserverMBS


The biggest plugin in space...