From: Shekar M. <sh...@fa...> - 2010-06-30 22:04:35
|
Hi, I am trying to convert a Blackberry application into Objective-C (for the iPhone). I see that xmlvm converts many of the core java class files (e.g., java.util.Vector, etc.). But, I did not see a conversion of java.util.Hashtable -- I see that many of the Java 2 collection framework classes are supported. I implemented an Objective-C version of java.util.Hashtable and java.util.Enumeration -- how can I include this in the xmlvm framework so it will be generated automatically every time I run xmlvm? Thanks for your reply. Regards, Shekar |
From: Paul P. <bay...@gm...> - 2010-07-01 22:23:17
|
Sending this again to everyone on the distribution list. If you don't care about synchronization, you should just use HashMap, which already has much of it implemented. Note that in Java though, HashMap is NOT synchronized & Hashtable is. So if you have implemented Hashtable, make sure you've taken synchronization into account. If you do need synchronization & have implemented Hashtable, you can submit it for review at: http://xmlvm-reviews.appspot.com/ Thanks! Paul Poley On Wed, Jun 30, 2010 at 4:37 PM, Shekar Mantha <sh...@fa...> wrote: > Hi, > > I am trying to convert a Blackberry application into Objective-C (for > the iPhone). I see that xmlvm converts many of the core java class files > (e.g., java.util.Vector, etc.). But, I did not see a conversion of > java.util.Hashtable -- I see that many of the Java 2 collection > framework classes are supported. I implemented an Objective-C version of > java.util.Hashtable and java.util.Enumeration -- how can I include this > in the xmlvm framework so it will be generated automatically every time > I run xmlvm? > > Thanks for your reply. > > Regards, > Shekar > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > |
From: Shekar M. <sh...@fa...> - 2010-07-02 01:21:43
|
Paul, I don't really care about synchronization but I cannot really use HashMap since that is not supported in the Blackberry API. I have an Obj-C implementation of the Hashtable and Enumeration classes but I am a bit confused about how the compatibility API is recognized and copied into the project. Even if I put these files in ..../xmlvm/trunk/src/xmlvm2objc/compat-lib and run xmlvm to convert my java application to obj-c, these new files do not get copied over. Is there any documentation on how to add files to the compatibility library? I also have a problem with the generated Obj-C files -- if I follow the steps given in the documentation for xmlvm, I get compile errors -- most of them are phase errors originating from the compiler not finding <MessageUI/Message.h> file. Perhaps this error is originating from the fact that I have an incompatible version of the iPhone SDK (2.2.1 -- simulator). It would help me immensely if I could find out which version of the iPhone SDK does xmlvm generate the code for. In the meantime, I will try and test out my implementation of Hashtable and Enumeration and submit it for review. Thanks, Shekar Paul Poley wrote: > Sending this again to everyone on the distribution list. > > If you don't care about synchronization, you should just use HashMap, > which already has much of it implemented. Note that in Java though, > HashMap is NOT synchronized & Hashtable is. So if you have > implemented Hashtable, make sure you've taken synchronization into > account. > > If you do need synchronization & have implemented Hashtable, you can > submit it for review at: > http://xmlvm-reviews.appspot.com/ > > Thanks! > Paul Poley > > On Wed, Jun 30, 2010 at 4:37 PM, Shekar Mantha <sh...@fa... > <mailto:sh...@fa...>> wrote: > > Hi, > > I am trying to convert a Blackberry application into Objective-C (for > the iPhone). I see that xmlvm converts many of the core java class > files > (e.g., java.util.Vector, etc.). But, I did not see a conversion of > java.util.Hashtable -- I see that many of the Java 2 collection > framework classes are supported. I implemented an Objective-C > version of > java.util.Hashtable and java.util.Enumeration -- how can I include > this > in the xmlvm framework so it will be generated automatically every > time > I run xmlvm? > > Thanks for your reply. > > Regards, > Shekar > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first <http://sprint.com/first> -- > http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > xmlvm-users mailing list > xml...@li... > <mailto:xml...@li...> > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > > |