From: Steve H. <st...@we...> - 2013-02-14 22:03:55
|
Hi all, I'm experimenting with trying to use a .xib file that is created in InterfaceBuilder as part of my XMLVM iphone app. I know I can do this by delving into native code, but I'm trying to see how much I can do in Java. Currently I just have a .xib file with a button, which I have supplied a tag so that I should be able to look it up with Java code. I'm using the info.plist file to cause the app to display the .xib on startup - and this works ok. My problem is now at trying to interact with the window. Since the getKeyWindow() and getWindows() methods (and many others) don't seem to be implemented in the org.xmlvm.iphone.UIApplication class I am looking for an alternative. One thing that I am trying (unsuccessfully so far) is to use the --xmlvm-new-ios-api flag to use the org.xmlvm.ios.* generated classes. Unfortunately I get compile errors in Xcode when I try this. I must be doing something wrong. I simply added the following to the build-Xcode.xml file: <arg value="--xmlvm-new-ios-api"/> inside the <java> call of the -xproject-create target. The errors I get on compile (in Xcode) is that it cannot find the org.xmlvm.ios.* classes at all. Therefore, I assume that I need build the crossmobile project to generate these files. Can someone point me to any documentation that might exist on the crossmobile project. A simple "ant" call is giving me compiler errors... and I don't have any leads right now on the correct way to generate these files (if indeed this is even the problem). Any pointers appreciated. Steve |