Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NSDictionary uses only NSStrings #22

Open
Pandawan opened this issue Aug 25, 2020 · 0 comments
Open

NSDictionary uses only NSStrings #22

Pandawan opened this issue Aug 25, 2020 · 0 comments

Comments

@Pandawan
Copy link
Contributor

Pandawan commented Aug 25, 2020

This issue is a carry-over from a discussion in #16.

I'm unsure if this is a limitation of the objective c to rust library or if I missed something, but I was unable to create an NSDictionary with multiple value types. As a result, I was forced to stringify arrays, numbers, and booleans to pass them to the objective c side.

This works but ends up in ugly/hackish code where all the data is stringified before being passed between rust and objective c.

I was thinking that we could potentially use C unions to pass data of any kind, but I'm unsure of the consequences of doing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants