toshok/coffeekit — Issue #1: audit method -> selector mapping
Author: toshok
Created: 2011-11-05 00:09:27+00:00
State: open

right now the api bindings have been essentially generated by a little piece of elisp. there are some serious problems, where :'s have been left in method names which cause incorrect JS to be generated (coffeescript's compiler is fine with this, so there's no error.)

there are other less serious problems, though. many selectors come in pairs like:

-foo
-setFoo:

those should be converted to ck.addProperty so that we get getter/setters in JS as opposed to methods.

and there are other methods that look like:

-doFooWithBarAndBaz: objc.invokeSelector ("doFoo:withBar:andBaz:")

the method name should either be "do" or "doFoo". There is some leeway here wrt what the other methods in the class look like.