Platforms to show: All Mac Windows Linux Cross-Platform
NSNotificationCenterMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Notifications | MBS MacBase Plugin | 9.7 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
An NSNotificationCenter object is essentially a notification dispatch table.
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.
- property Handle as Integer
- 8 methods
- method addObserver(observer as NSNotificationObserverMBS, name as string="", theObject as Variant=nil)
- method Constructor
- method postNotification(notification as NSNotificationMBS)
- method postNotificationName(name as string)
- method postNotificationName(name as string, theObject as Variant)
- method postNotificationName(name as string, theObject as Variant, userInfo as dictionary)
- method removeObserver(observer as NSNotificationObserverMBS)
- method removeObserver(observer as NSNotificationObserverMBS, name as string, theObject as Variant=nil)
- shared method defaultCenter as NSNotificationCenterMBS
Sub classes:
Some methods using this class:
- InstantMessageMBS.notificationCenter as NSNotificationCenterMBS
- NSWorkspaceMBS.notificationCenter as NSNotificationCenterMBS
Some examples using this class:
- /AVFoundation/Recorder
- /AVFoundation/Screen Recorder
- /MacBase/Menus/Cocoa Menu Modification
- /MacBase/NSProcessInfo Notifications
- /MacCocoa/Notifications/NSWorkspaceMBS notification receiver
- /MacCocoa/NSWorkSpace Notifications
- /MacCocoa/readToEndOfFileInBackgroundAndNotify Test
- /MacFrameworks/Blocks test
- /PDFKit/PDFView iOS Test
- /PDFKit/PDFViewControlMBS Test
Blog Entries
The items on this page are in the following plugins: MBS MacBase Plugin.
NSNetServiceMBS - NSNotificationMBS