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:
parent
70651f1c67
commit
4d098faaac
4 changed files with 28 additions and 16 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue