Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

NSNotificationMBS class

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class Notifications MBS MacBase Plugin 9.7 Yes No No Yes, macOS only No
Function: NSNotification objects encapsulate information so that it can be broadcast to other objects by an NSNotificationCenter object.
Notes:
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.

Feedback, Comments & Corrections

This class has no sub classes.

Some methods using this class:

Some events for this class:

Some examples which use this class:


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


NSNotificationCenterMBS   -   NSNotificationObserverMBS




Links
MBS Xojo Plugins