From: Arno P. <ar...@pu...> - 2010-06-23 09:42:53
|
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. 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. Comments? Arno On 6/23/10 11:22 AM, Panayotis Katsaloulis wrote: > I create a new email, since this is a completely different problem. > > What do you think should do with new API's in iOS4? > How to make safe that someone compiling with 3.1, won't use this new API's, so break the obj-c code? > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users |