MBS Xojo Developer Conference and Training
Join us from 3rd to 6th May 2017 in Berlin, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

NSNotificationMBS class

class, Notifications, MBS CocoaBase Plugin (NSNotification), class NSNotificationMBS,
Plugin version: 9.7, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.

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.

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 CocoaBase Plugin.


NSNotificationCenterMBS   -   NSNotificationObserverMBS




Links
MBS Realbasic tutorial videos