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

Provide convenience utilities for toll-free bridging #1547

Open
stuartmorgan opened this issue Sep 10, 2024 · 0 comments
Open

Provide convenience utilities for toll-free bridging #1547

stuartmorgan opened this issue Sep 10, 2024 · 0 comments

Comments

@stuartmorgan
Copy link

It would be nice to have convenience constructors to support toll-free bridging, rather than having to extract and cast pointers. E.g., an NSString(ffi.Pointer<__CFString> cf) for strings, and similarly for other common bridged types.

String is especially useful since there are a bunch of constants that are only defined as CFStrings in Apple's headers, and the standard Obj-C idiom is to just cast them as you use them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

No branches or pull requests

2 participants