NSUserNotification was deprecated in Mojave, and I am finding it sketchy in Big 
Sur.  I’m therefore experimenting with moving to UNNotificationMBS.

In the sample project in progress, I have this code in a button’s Action event 
(myNotification and myNotificationCenter are declared in Window.Open)

<snip>

myNotification=new UNMutableNotificationContentMBS()
myNotification.title=TextField1.Value
myNotification.body=TextField2.Value

Var myRequest as new UNNotificationRequestMBS(app.ExecutableFile.Name, 
myNotification,nil)
myNotificationCenter.addNotificationRequest(myRequest,nil)
</snip

In the very first line I get a “FunctionNotFoundException” (a new one for me), 
saying that the UNMutableNotificationContent class is missing.

For the actual project, and screenshot of the error, you may go to 
https://www.seafortyone.com/beta/NSNotification.zip 
<https://www.seafortyone.com/beta/NSNotification.zip>

At this point I don’t know whether I have something missing, or I’ve run into 
someone else’s bug.

Thanks for reading.
-----
"Drama is life with the dull bits cut out."
-Alfred Hitchcock

Jerry Fritschle
jerryfritsc...@icloud.com



_______________________________________________
mbsplugins@monkeybreadsoftware.info mailing list
%(list_address)s
https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Reply via email to