From: Panayotis K. <pan...@pa...> - 2010-06-23 10:11:31
|
On 23 Ιουν 2010, at 12:42 ΜΜ, Arno Puder wrote: > > Apple advocates universal binaries that can be deployed on all their > devices and recommends to use runtime checks to see if certain > capabilities are present on the current device: > http://developer.apple.com/iphone/library/documentation/General/Conceptual/iPadProgrammingGuide/StartingYourProject/StartingYourProject.html > > Check section called "Adding Runtime Checks for Newer Symbols". > > Well, we can mimic just the same in the Java API. > Class.forName("UISplitViewController") will return null if not > executed > on an iPad. So, your opinion is XMLVM to be updated to the latest API, in any case, and let the programmer deal with multiple versions. That's the quickest (and easiest?) solution :) I am thinking though if there is a safer way to do it. I am completely ignorant at this point, but is there any java compiler option to check if the code is older than a specified version? How this problem is dealt with java libraries? > Anyways, another issue I wanted to raise: there is more and more API > being added and it incurs a lot of work to include Java versions for > XMLVM because the wrappers are manually written. I think we should > take > a more serious look at projects such as > http://code.google.com/p/jnaerator/ and consider to generate the > wrappers automatically. For general wrappers, it is not bad. Still there are a lot of methods that need to be tweaked by hand :) |