I don't see a way to create an NSDictionary with an NSString and an NSNumber as values, because the public Rust API for NSDictionary requires values to be Owned references, and this isn't possible for NSString and NSNumber. This blocks me from posting announcement notifications in the AccessKit macOS adapter, unless I use an unsafe workaround.
I don't see a way to create an
NSDictionarywith anNSStringand anNSNumberas values, because the public Rust API forNSDictionaryrequires values to beOwnedreferences, and this isn't possible forNSStringandNSNumber. This blocks me from posting announcement notifications in the AccessKit macOS adapter, unless I use an unsafe workaround.