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

cast ObjC objects to JS data types #96

Open
donpark opened this issue Mar 10, 2017 · 2 comments
Open

cast ObjC objects to JS data types #96

donpark opened this issue Mar 10, 2017 · 2 comments

Comments

@donpark
Copy link

donpark commented Mar 10, 2017

Are there built-in support for converting common ObjC data like NSData, NSArray , and NSDictionary into Buffer, Array, and Object? I browsed the source code but wasn't able to find them.

Yes, I did find toString method leveraging the description method.

@TooTallNate
Copy link
Owner

Not at this time. The $ function basically does the opposite, but only very primitive data types are implemented.

Patches welcome, for making the $ function go the other way, and then we can also implement these higher order data type conversion functions as well.

@donpark
Copy link
Author

donpark commented Mar 11, 2017

I see. NP.

Re patches, perhaps later. For now, I just need to retrieve some binary clipboard data so opted to just write a simple pbpaste-like command line tool w/binary support.

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