From: Panayotis K. <pan...@pa...> - 2009-10-11 01:11:38
|
OK, now things start to get a bit dirty! The urge of this post was my effort to compile ibutton test (to do some real work at last :P ) This demo does not compile, since java.awt.Color is missing. So, although methods in java.lang.Math seem to be straight forward how to implement them ;-) , this gets a bit more complicated (since it doesn't exist at all). And it gets even more complicated if I had a look at "mixed" files, such as UITextView and UIButton. I have to admit it, I am totally lost :) UITextField is pretty clear what it does, no surprises there. What is on the java-side is also on the obj-c side. UIButton though is completely out of sync. Except the static method which created the UIButton (which makes sense) and setTitle forState, all other methods are missing! Are missing methods actually methods *not* really allowed to be executed in the obj-c environment (e.g. for emulation purposes?). Is for example "setPressedBackgroundColor(Color)" one of them? At the end of the day, is org_xmlvm_iphone_UIButton actually a UIButton? Let's go back to the original problem: UILabel.setBackgroundColor wants a Color argument. Is this on purpose? Isn't there a confusion whether UIColor or Color should be used? Can this be solved? What exactly should I do to implement the missing link? And a question out of curiosity: is java.lang.String a NSMutableString after all? Too many questions, I know, but I's all new (and exciting) for me… and I want to help :) |