|
From: Arno P. <ar...@pu...> - 2011-10-10 04:25:43
|
first of all: very nice work! I like the JavaDoc that makes it easy to
correlate the Objective-C API with the Java counterpart.
A few things:
(1) I would like to move everything to the namespace org.xmlvm.ios.*. I
wanted to do that for a long time but with the new API existing apps
need to be changed anyways.
(2) All classes should have the @XMLVMSkeletonOnly annotation. Perhaps
add a command line argument that triggers the generation of this annotation.
(3) I wonder if we should address the question of optional methods in
Objective-C protocols again. A long time ago we had a longer discussion
about this topic. Right now you map a protocol to a Java interface,
making all its methods mandatory.
(4) The parser tool should use more "meta knowledge" to generate better
Java API. This should be added to advisor.xml. A couple of examples:
- UIView.getSubviews() should return List<UIView>, not just List
- As Aaron pointed out, const char* should be mapped to
java.lang.String where appropriate.
- UIImage.writeToSavedPhotosAlbum(): the completionTarget and
completionSelector should be combined to a Runnable.
Arno
|