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
This item is deprecated and should no longer be used. You can use UNNotificationMBS class instead.
The NSUserNotificationMBS class is used to configure a notification that is scheduled for display by the NSUserNotificationCenterMBS class.
Example
dim u as new NSUserNotificationMBS

u.Title = "Hello World"
u.subtitle = "from Xojo."
u.informativeText = "Our first Notification from Xojo."

dim d as new date
d.Second = d.Second + 10
u.deliveryDate = d

dim c as new NSUserNotificationCenterMBS
c.scheduleNotification u

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.

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:

Some events using this class:

Some examples using this class:

Blog Entries

Xojo Developer Magazine

Release notes


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


NSUserNotificationCenterMBS   -   NSUserScriptTaskMBS


The biggest plugin in space...