Matt Curtis

Results 75 comments of Matt Curtis

Ah, OK. I reviewed the source more thoroughly and that article and I see now...what a bother, haha. `va_list` makes this more hopeless... (I also just realized my 'fix' in...

If you have control over the receiving method (in this case `completionHandler:` you can just unbox the `JSValue` function, wrap it in a block, and invoke that.

No, unfortunately. You'd need to be able to wrap the `JSValue` in a block for this. However, there's an alternative, but things get a little bit hacky. Basically, you could...

Woah, awesome. Thanks for the update, glad to hear it's being worked on.

@phuochau (any anyone else curious) there's another way to do this without having to import the Cocoascript framework at all: https://gist.github.com/matt-curtis/4d0a64048307fb54f874d665aac7e0e1

That's it exactly. More so NSData than NSStream, though.

Cool - I might just do that :) Currently this isn't blocking me, as having to use files isn't a problem yet. Should it, I'll definitely see if I can...

> I think this method is private Api too.I cant find the method in any ios document. :( It's not a 'private' API per-say, it's just not exposed. It is...

Unfortunately, the only solution I've found is to flatten your aliases. One easy way is via the Terminal + `cp` command, which does it automatically. :/

There's also the fact that Apple's CGPDF framework has a memory leak in its rendering (although the leak may be fixed, though it was there last time I looked in...