alexis.barra at gmail.com
Thu Oct 26 09:27:13 PDT 2017
I found this article in the internet that was a great help to start coding.
On 25 October 2017 at 17:19, Alexis Barra <alexis.barra at gmail.com> wrote:
> to tackle it? I'm checking the API at this moment but I'm not clear how to
> use it.
> On 25 October 2017 at 16:53, Geoffrey Garen <ggaren at apple.com> wrote:
>> Hi Alexis.
>> You’ll either need to convert your C++ objects to Objective-C objects,
>> On Oct 25, 2017, at 4:39 PM, Alexis Barra <alexis.barra at gmail.com> wrote:
>> like this:
>> @protocol MyPointExports <JSExport>@property double x;@property double y;- (NSString *)description;- (instancetype)initWithX:(double)x y:(double)y;+ (MyPoint *)makePointWithX:(double)x y:(double)y;@end
>> @implementation MyPoint// ... at end
>> JSContext *context = [[JSContext alloc] init];
>> // export MyPoint class
>> context[@"MyPoint"] = [MyPoint class];
>> But I have not idea how to translate JSExport and protocol into C++.
>> Alexis Barra.
>> jsc-dev mailing list
>> jsc-dev at lists.webkit.org
> Alexis Barra.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the jsc-dev