From: Arno P. <ar...@pu...> - 2009-08-03 22:55:35
|
Björn Caroll wrote: > When I started thinking about this I saw that you had developed Java > api's for the iPhone but the problem that I saw was that you also had to > develop objective c counterpart for every class. This is to translate > from the name+param-type methodnames, you have to use to handle > polymorphism. Coming from JavaME I am used to keep the size of the > binary down and to double every compatibility class does not seem right. > > Could this naming problem be solved? I was thinking that maybe there > could be a parameter that tells XMLVM to not add type to the method name > when calling a specified package. In the case of iPhone libraries it > would be the default package since Objective C does not have packages. > What do you think of that idea? XMLVM uses categories to extend existing Cocoa classes, so the overhead is minimal. In many cases it is not just a matter of delegating the method call in the wrapper, but there is a little more that has to be done (for example garbage collection or mapping from value types to objects). Arno |