MBS UserNotification example + Other Button

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

Well, first the NSUserNotificationMBS classes are all deprecated by Apple. You should switch to UNNotificationMBS and related classes.

so the event doesn’t fire for clicking the other button at all?

TypeAdditionalActionClicked doesn’t fire at all. Nothing shows up for the debug log when it the other (second) button is clicked.

if theNSUserNotificationMBS classes are all deprecated… then maybe someone should update the UserNotification example project included with MBS Examples?

Well, it may be time to remove the “UserNotification example” example.
The other one in the folder is for UNNotification and you may want to use that.

Sorry, I don’t know why you don’t see the event.