Platforms to show: All Mac Windows Linux Cross-Platform
NSUserNotificationMBS class Deprecated
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | User Notifications | MBS MacFrameworks Plugin | 12.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
The NSUserNotificationMBS object not only configures the notification, when the notification is delivered information about when the notification was actually presented to the user (if at all) and other details are provided in the notification object. User applications can create NSUserNotification objects and register them with the NSUserNotificationCenterMBS object to notify the user when an application requires attention.
See NSUserNotificationCenterMBS Class Reference for more information.
Threading Information
The NSUserNotificationCenterMBS class and the NSUserNotificationMBS class are both thread safe.
This is for sending user notifications to the Mac your Xojo application runs on. Not for remote notifications or notifications to iOS devices.
- 25 properties
- property actionButtonTitle as string
- property activationType as Integer
- property actualDeliveryDate as date
- property actualDeliveryDateTime as DateTime
- property additionalActivationAction as NSUserNotificationActionMBS
- property contentImage as NSImageMBS
- property deliveryDate as date
- property deliveryDateTime as DateTime
- property deliveryRepeatInterval as NSDateComponentsMBS
- property deliveryTimeZone as NSTimeZoneMBS
- property description as string
- property Handle as Integer
- property hasActionButton as boolean
- property hasReplyButton as boolean
- property identifier as string
- property informativeText as string
- property otherButtonTitle as string
- property Presented as boolean
- property remote as boolean
- property response as NSAttributedStringMBS
- property responsePlaceholder as string
- property soundName as string
- property subtitle as string
- property title as string
- property userInfo as dictionary
- 5 methods
- method additionalActions as NSUserNotificationActionMBS()
- method Constructor
- method copy as NSUserNotificationMBS
- method Print
- method setAdditionalActions(additionalActions() as NSUserNotificationActionMBS)
- 2 shared methods
- shared method Available as boolean
- shared method NSUserNotificationDefaultSoundName as string
- 5 constants
Constants
Constant | Value | Description |
---|---|---|
NSUserNotificationActivationTypeReplied | 3 | The activation type for a notification which got a reply. |
Activation Type Constant
Constant | Value | Description |
---|---|---|
NSUserNotificationActivationTypeActionButtonClicked | 2 |
The user clicked on the action button of the notification alert. Available in OS X v10.8 and later. |
NSUserNotificationActivationTypeAdditionalActionClicked | 4 |
User did select an additional action. Only for Mac OS X 10.10 and newer. |
NSUserNotificationActivationTypeContentsClicked | 1 |
The user clicked on the contents of the notification alert. Available in OS X v10.8 and later. |
NSUserNotificationActivationTypeNone | 0 |
The user did not interact with the notification alert. Available in OS X v10.8 and later. |
This class has no sub classes.
Some methods using this class:
- NSUserNotificationCenterMBS.deliveredNotifications as NSUserNotificationMBS()
- NSUserNotificationCenterMBS.deliverNotification(notification as NSUserNotificationMBS)
- NSUserNotificationCenterMBS.removeDeliveredNotification(notification as NSUserNotificationMBS)
- NSUserNotificationCenterMBS.removeScheduledNotification(notification as NSUserNotificationMBS)
- NSUserNotificationCenterMBS.scheduledNotifications as NSUserNotificationMBS()
- NSUserNotificationCenterMBS.scheduleNotification(notification as NSUserNotificationMBS)
Some events using this class:
- NSUserNotificationCenterDelegateMBS.didActivateNotification(center as NSUserNotificationCenterMBS, notification as NSUserNotificationMBS)
- NSUserNotificationCenterDelegateMBS.didDeliverNotification(center as NSUserNotificationCenterMBS, notification as NSUserNotificationMBS)
- NSUserNotificationCenterDelegateMBS.shouldPresentNotification(center as NSUserNotificationCenterMBS, notification as NSUserNotificationMBS) as boolean
Blog Entries
- Cleanup Xojo Plugins
- MBS Xojo Plugins, version 20.6pr1
- MonkeyBread Software Releases the MBS Xojo Plugins in version 19.1
- MBS Xojo Plugins, version 19.1pr1
- MBS Xojo Plugins 17.2
- New for Mac OS X 10.10 in MBS Xojo Plugins
- MBS Xojo / Real Studio plug-ins in version 13.5
- MBS Xojo / Real Studio Plugins, version 13.5pr1
- Mac OS X 10.8 User Notifications with Filemaker and Real Studio
Xojo Developer Magazine
Release notes
- Version 21.0
- Deprecated NSUserNotificationMBS in favor of UNNotificationMBS class.
- Version 19.1
- Added UNNotificationMBS and related classes for notifications on MacOS 10.14 or newer. (NSUserNotificationMBS is deprecated by Apple.)
The items on this page are in the following plugins: MBS MacFrameworks Plugin.
NSUserNotificationCenterMBS - NSUserScriptTaskMBS