Re: [MBS] Trying to use UNNotificationMBS

2020-10-01 Thread Jerry Fritschle
> On Oct 1, 2020, at 1:25 AM, Christian Schmitz  > wrote:
> 
> I am sorry. Will fix the plugin loading for 20.5pr1 later today.


Thanks.  That made a world of difference :-)

Working further on the example project, I went in circles for awhile until I 
finally figured out that, unlike NSUserNotification,  UNUserNotificationCenter 
notifications are only approved from a built and signed (!) app.  If there’s a 
way to code sign for debugging in Xojo, I sure don’t know it.

The example app works just fine on Catalina and Mojave.  As such I’ve already 
put this into the code of a couple of my main projects, using 
SystemInformationMBS.IsMojave to determine which API to use.  And they work 
just fine (including on a High Sierra VM, just to check.)

Fine, that is, until we get to Big Sur.  In this case, the banners do not 
display.  However, I get success from the event handler, and this is confirmed 
by looking at the notification history in the Finder (on BS, by tapping on the 
clock menu item.)

The workaround I found was to go to System Preferences>Notifications and change 
the type from “Banner” to “Alert”.  Then the notifications would display—but, 
of course, now had to be manually dismissed.

The funny thing is that I then tried the same workaround with my older stuff 
that used NSUserNotification, with the same result.   The irony is that I’ve 
changed APIs but gone full circle.  Of course, the migration is ultimately good.

My example project, including the signed build, is at :

https://www.seafortyone.com/beta/UNNotification.zip 


Anyone is welcome to look at this, and I hope it is found to be useful.  If I’m 
missing something, I’ll appreciate help.  But I’m wondering if I’m up against a 
Big Sur 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


[MBS] [ANN] 20.5pr1

2020-10-01 Thread Christian Schmitz
Hi,


* Added CopyColumn method for XLSheetMBS class.
* Added CubeSQLLastInsertID to SQLDatabaseMBS and SQLConnectionMBS classes.
* Added imageWithSystemSymbolName method to NSImageMBS class to get SF Symbols.
* Added phoneticOrganizationName property for CNContactMBS class and 
phoneticOrganizationName property for CNMutableContactMBS class.
* Added predicateForContactsMatchingEmailAddress and 
predicateForContactsMatchingPhoneNumber methods for CNContactMBS class.
* Added WindowsML classes to do machine learning on Windows 10: see 
WinLearningModelMBS class
* Changed setappearance, appearance and effectiveAppearance methods in 
NSAppearanceMBS class to accept application or NSApplicationMBS objects.
* Fixed an issue with plugin trying to show dialog in web app.
* Fixed exception raised by AllFetchKeys function in CNContactStoreMBS class.
* Fixed loading of UserNotifications framework.
* Updated DynaPDF to version 4.0.42.120.
* Updated OpenSSL to version 1.1.1h.
* Updated SQLAPI to 5.1.2.
* Updated to Xcode 11.7.

Download: 
https://www.monkeybreadsoftware.com/xojo/download/plugin/Prerelease/

Or ask us to be added to our shared Dropbox folder.

Sincerely
Christian

-- 
Read our blog about news on our plugins:

http://www.mbsplugins.de/



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


Re: [MBS] Trying to use UNNotificationMBS

2020-10-01 Thread Christian Schmitz


> Am 01.10.2020 um 01:55 schrieb Jerry Fritschle :
> 
> NSUserNotification was deprecated in Mojave, and I am finding it sketchy in 
> Big Sur.  I’m therefore experimenting with moving to UNNotificationMBS.

Yes, NSUserNotification stopped working somewhere.

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

I am sorry. Will fix the plugin loading for 20.5pr1 later today.

Sincerely
Christian

-- 
Read our blog about news on our plugins:

http://www.mbsplugins.de/



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