Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 3877

MBS UserNotification example + Other Button

$
0
0

How the heck do you tell if the otherButton was selected?

In the MyNSUserNotificationCenterDelegateMBS even handler for didActivateNotification I added the code below, but “NSUserNotificationActivationTypeAdditionalActionClicked” never fires

Dim a As Integer = notification.activationType
dim m as string

System.DebugLog(notification.identifier)

Select case a
Case notification.NSUserNotificationActivationTypeNone
  
case notification.NSUserNotificationActivationTypeContentsClicked
  m = " with click on contents"
  
Case notification.NSUserNotificationActivationTypeActionButtonClicked
  m = " with click on action button"
  
Case notification.NSUserNotificationActivationTypeReplied
  m = " replied"
  
Case notification.NSUserNotificationActivationTypeAdditionalActionClicked
  m = " with click on Other button"
  
end Select

MainWindow.listbox1.AddRow "Activate: "+notification.Title+m

4 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 3877

Trending Articles