TooTallNate / NodObjC

The Node.js ⇆ Objective-C bridge

Home Page:http://tootallnate.github.io/NodObjC

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cast ObjC objects to JS data types

donpark opened this issue · comments

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.

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.

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.