Xojo Developer Conference
Join us from 25th to 27th April 2018 in Denver.

Platforms to show: All Mac Windows Linux Cross-Platform

NSUserNotificationMBS class

class, User Notifications, MBS MountainLion Plugin (NSUserNotification), class NSUserNotificationMBS,
Plugin version: 12.3, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.

Function: 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 Real Studio."
u.informativeText = "Our first Notification from Real Studio."

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

dim c as new NSUserNotificationCenterMBS
c.scheduleNotification u
Notes:
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 Real Studio application runs on. Not for remote notifications or notifications to iOS devices.

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 for this class:

Some examples which use this class:


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


NSUserNotificationCenterMBS   -   NSUserScriptTaskMBS




Links
MBS FileMaker tutorial videos