How to using Objective-C Block
Closed this issue · 8 comments
maxfong commented
wax does not support block
maxfong commented
felipejfc commented
example code?
todicus commented
This is a bit of a hack on top of Wax, but I can verify that it does work: https://groups.google.com/d/msg/iphonewax/mMhRCRwfEjQ/dPlA3wveeqoJ
felipejfc commented
this is a good hack, I think this can be done without the coersion and for N arguments, will take a look on that later...
void-main commented
@todicus Is it working? I got EXC_BAD_ACCESS on this line: wax_fromInstance(L, param1);
when trying to use asVoidDyadicBlock..
felipejfc commented
@void-main I tested it and it worked. I tested with my fork
intheway commented
@felipejfc @void-main @maxfong @todicus wax is maintained by alibaba, block is support. see https://github.com/alibaba/wax