1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

ObjectiveC: Add support for uninitialised variants when converting to an NSDictionary

This commit is contained in:
Anthony Nicholls 2023-11-09 16:36:33 +00:00
parent 70651f1c67
commit 4d098faaac
4 changed files with 28 additions and 16 deletions

View file

@ -40,7 +40,7 @@ namespace PushNotificationsDelegateDetailsOsx
notification.title = juceStringToNS (n.title);
notification.subtitle = juceStringToNS (n.subtitle);
notification.informativeText = juceStringToNS (n.body);
notification.userInfo = varObjectToNSDictionary (n.properties);
notification.userInfo = varToNSDictionary (n.properties);
auto triggerTime = Time::getCurrentTime() + RelativeTime (n.triggerIntervalSec);
notification.deliveryDate = [NSDate dateWithTimeIntervalSince1970: (double) triggerTime.toMilliseconds() / 1000.0];