You can subscribe to this list here.
2009 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(29) |
Aug
(75) |
Sep
(32) |
Oct
(147) |
Nov
(31) |
Dec
(49) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2010 |
Jan
(46) |
Feb
(35) |
Mar
(148) |
Apr
(33) |
May
(53) |
Jun
(46) |
Jul
(60) |
Aug
(44) |
Sep
(135) |
Oct
(23) |
Nov
(68) |
Dec
(42) |
2011 |
Jan
(94) |
Feb
(55) |
Mar
(114) |
Apr
(78) |
May
(64) |
Jun
(10) |
Jul
(31) |
Aug
(2) |
Sep
(25) |
Oct
(13) |
Nov
(8) |
Dec
(24) |
2012 |
Jan
(5) |
Feb
(33) |
Mar
(31) |
Apr
(19) |
May
(24) |
Jun
(23) |
Jul
(14) |
Aug
(15) |
Sep
(12) |
Oct
(3) |
Nov
(4) |
Dec
(19) |
2013 |
Jan
(8) |
Feb
(20) |
Mar
(4) |
Apr
(2) |
May
(1) |
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(2) |
Oct
(1) |
Nov
(4) |
Dec
|
2014 |
Jan
|
Feb
|
Mar
(6) |
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2015 |
Jan
(7) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(6) |
2016 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(3) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2019 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Panayotis K. <pan...@pa...> - 2011-05-10 10:20:55
|
On 10 Μαϊ 2011, at 12:50 μ.μ., D.D...@ak... wrote: > If I check the project, I have a resources folder that only contains the demo.png file, while > the xmlvm.properties file has the entry > > xmlvm.resource=resources/ > > Obviously it didn't take into account my resources. How should it behave instead? > Should it copy my files into the resources/ folder? Can I do it manually? > That's what I did previously and it works, as far as I use images. If I try to read a file > instead, I get the error I wrote you about. I don't know if the things are connected. > It may be useful to know that mu res/ folder contains subdirectories which contain the needed files > > I also tried to modify the resource path to > > xmlvm.resource=res > Notice, one entry has a "/" and the other has not. If you see the help file of xmlvm (or the online documentation), you'll see that the "/" is important at the end. |
From: <D.D...@ak...> - 2011-05-10 10:02:08
|
<font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"><div>Hi,<br><br>I just fixed the problem by writing the path as<br><br>NSBunde.mainBundle.bundlePath + "/res/"<br><br>This recreates the absolute path but at least I can port my application on another computer <br>without having to change the path manually. I wonder if it this is the standard way of doing it<br>and most importantly it will work on the device.<br><br>Regards,<br><br>Domenico<br><br></div><font color="#990099">---...@ak... a écrit : -----<br><br></font><blockquote style="padding-right:0px;padding-left:5px;margin-left:5px;border-left:#000000 2px solid;margin-right:0px">A : Panayotis Katsaloulis <a class="moz-txt-link-rfc2396E" href="mailto:pan...@pa..."><pan...@pa...></a>, <a class="moz-txt-link-abbreviated" href="mailto:xml...@li...">xml...@li...</a><br>De : <a class="moz-txt-link-abbreviated" href="mailto:D.D...@ak...">D.D...@ak...</a><br>Date : 10/05/2011 11:50<br>Objet : Re: [xmlvm-users] [xmlvm-dev] Files path<br><br><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"><div>Hi,<br><br>I checked it by trying to create a new project and providing as resource folder the absolute path<br>of a folder located somewhere else in the system. However I get the following warning<br><br>WARNING: InputProcess.GetOutputFiles(): Input File does not exist or is not a file<br><br>If I check the project, I have a resources folder that only contains the demo.png file, while<br>the xmlvm.properties file has the entry<br><br>xmlvm.resource=resources/ <br><br>Obviously it didn't take into account my resources. How should it behave instead? <br>Should it copy my files into the resources/ folder? Can I do it manually?<br>That's what I did previously and it works, as far as I use images. If I try to read a file<br>instead, I get the error I wrote you about. I don't know if the things are connected.<br>It may be useful to know that mu res/ folder contains subdirectories which contain the needed files<br><br>I also tried to modify the resource path to <br><br>xmlvm.resource=res<br><br>But the result is the same: images are loaded anyway, while files aren't (with any combination of file path except for the absolute one)<br><br>Any hint?<br><br>Thanks,<br><br>Domenico<br></div><font color="#990099"><br>-----Domenico De Fano <a class="moz-txt-link-rfc2396E" href="mailto:dom...@gm..."><dom...@gm...></a> a écrit : -----<br><br></font><blockquote style="padding-right:0px;padding-left:5px;margin-left:5px;border-left:#000000 2px solid;margin-right:0px">A : Panayotis Katsaloulis <a class="moz-txt-link-rfc2396E" href="mailto:pan...@pa..."><pan...@pa...></a>, <a class="moz-txt-link-abbreviated" href="mailto:d.d...@ak...">d.d...@ak...</a><br>De : Domenico De Fano <a class="moz-txt-link-rfc2396E" href="mailto:dom...@gm..."><dom...@gm...></a><br>Date : 10/05/2011 09:02<br>Objet : Re: [xmlvm-dev] Files path<br><br>Hi,<br><br>I think I got the point: when I created the project, I didn't indicate in the full path in the --resource option, so that this <br>is actually located outside the project directory. I'll try and let you know<br> However, I wonder if I should see something in the xcode project too, a reference to the resources folders or something<br>similar.<br><br>Thanks for your help!<br><br>Domenico De Fano<br><br><div class="gmail_quote">On 4 May 2011 20:48, Panayotis Katsaloulis <span dir="ltr"><<a href="mailto:pan...@pa...">pan...@pa...</a>></span> wrote:<br> <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid #cccccc; padding-left: 1ex;"><div class="im"><br> On May 4, 2011, at 9:28 PM, Domenico De Fano wrote:<br><br> > Hi,<br> ><br> > That's exactly what I'm doing, but unfortunately it doesn't work. Do you think I need to set any particular<br> > configuration in the XMLVM project or to put my files in another folder?<br> > Also, I don't understand why I don't need to add the "res/" to the path when loading images using the<br> > UIIMage. I know it depends on the fact that when I created the project I set that folder as the one<br> > containing the resources, but I don't clearly see the connection.<br> ><br> > Thanks,<br> ><br> > Domenico<br><br> </div>Just a quick comment:<br> I have used folders with resources in the main bundle and elsewhere and works perfectly.<br> I suspect that you don't do something correctly.<br><br> As a first step, have a look at the produces *.app directory and make sure that the file hierarchy is correct.<br> <div><div></div><div class="h5">------------------------------------------------------------------------------<br> WhatsUp Gold - Download Free Network Management Software<br> The most intuitive, comprehensive, and cost-effective network<br> management toolset available today. Delivers lowest initial<br> acquisition cost and overall TCO of any competing solution.<br> <a href="http://p.sf.net/sfu/whatsupgold-sd" target="_blank">http://p.sf.net/sfu/whatsupgold-sd</a><br> _______________________________________________<br> Xmlvm-developers mailing list<br> <a href="mailto:Xml...@li...">Xml...@li...</a><br> <a href="https://lists.sourceforge.net/lists/listinfo/xmlvm-developers" target="_blank">https://lists.sourceforge.net/lists/listinfo/xmlvm-developers</a><br> </div></div></blockquote></div><br><br clear="all"><br>-- <br>Domenico De Fano<br> </blockquote><br></font> <font face="Courier New,Courier,monospace" size="3">------------------------------------------------------------------------------<br>Achieve unprecedented app performance and reliability<br>What every C/C++ and Fortran developer should know.<br>Learn how Intel has extended the reach of its next-generation tools<br>to help boost performance applications - inlcuding clusters.<br><a href="http://p.sf.net/sfu/intel-dev2devmay">http://p.sf.net/sfu/intel-dev2devmay</a></font><font face="Courier New,Courier,monospace" size="3">_______________________________________________<br>xmlvm-users mailing list<br><a class="moz-txt-link-abbreviated" href="mailto:xml...@li...">xml...@li...</a><br><a href="https://lists.sourceforge.net/lists/listinfo/xmlvm-users">https://lists.sourceforge.net/lists/listinfo/xmlvm-users</a><br></font> </blockquote><br></font> |
From: <D.D...@ak...> - 2011-05-10 09:50:55
|
<font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"><div>Hi,<br><br>I checked it by trying to create a new project and providing as resource folder the absolute path<br>of a folder located somewhere else in the system. However I get the following warning<br><br>WARNING: InputProcess.GetOutputFiles(): Input File does not exist or is not a file<br><br>If I check the project, I have a resources folder that only contains the demo.png file, while<br>the xmlvm.properties file has the entry<br><br>xmlvm.resource=resources/ <br><br>Obviously it didn't take into account my resources. How should it behave instead? <br>Should it copy my files into the resources/ folder? Can I do it manually?<br>That's what I did previously and it works, as far as I use images. If I try to read a file<br>instead, I get the error I wrote you about. I don't know if the things are connected.<br>It may be useful to know that mu res/ folder contains subdirectories which contain the needed files<br><br>I also tried to modify the resource path to <br><br>xmlvm.resource=res<br><br>But the result is the same: images are loaded anyway, while files aren't (with any combination of file path except for the absolute one)<br><br>Any hint?<br><br>Thanks,<br><br>Domenico<br></div><font color="#990099"><br>-----Domenico De Fano <a class="moz-txt-link-rfc2396E" href="mailto:dom...@gm..."><dom...@gm...></a> a écrit : -----<br><br></font><blockquote style="padding-right:0px;padding-left:5px;margin-left:5px;border-left:#000000 2px solid;margin-right:0px">A : Panayotis Katsaloulis <a class="moz-txt-link-rfc2396E" href="mailto:pan...@pa..."><pan...@pa...></a>, <a class="moz-txt-link-abbreviated" href="mailto:d.d...@ak...">d.d...@ak...</a><br>De : Domenico De Fano <a class="moz-txt-link-rfc2396E" href="mailto:dom...@gm..."><dom...@gm...></a><br>Date : 10/05/2011 09:02<br>Objet : Re: [xmlvm-dev] Files path<br><br>Hi,<br><br>I think I got the point: when I created the project, I didn't indicate in the full path in the --resource option, so that this <br>is actually located outside the project directory. I'll try and let you know<br> However, I wonder if I should see something in the xcode project too, a reference to the resources folders or something<br>similar.<br><br>Thanks for your help!<br><br>Domenico De Fano<br><br><div class="gmail_quote">On 4 May 2011 20:48, Panayotis Katsaloulis <span dir="ltr"><<a href="mailto:pan...@pa...">pan...@pa...</a>></span> wrote:<br> <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid #cccccc; padding-left: 1ex;"><div class="im"><br> On May 4, 2011, at 9:28 PM, Domenico De Fano wrote:<br><br> > Hi,<br> ><br> > That's exactly what I'm doing, but unfortunately it doesn't work. Do you think I need to set any particular<br> > configuration in the XMLVM project or to put my files in another folder?<br> > Also, I don't understand why I don't need to add the "res/" to the path when loading images using the<br> > UIIMage. I know it depends on the fact that when I created the project I set that folder as the one<br> > containing the resources, but I don't clearly see the connection.<br> ><br> > Thanks,<br> ><br> > Domenico<br><br> </div>Just a quick comment:<br> I have used folders with resources in the main bundle and elsewhere and works perfectly.<br> I suspect that you don't do something correctly.<br><br> As a first step, have a look at the produces *.app directory and make sure that the file hierarchy is correct.<br> <div><div></div><div class="h5">------------------------------------------------------------------------------<br> WhatsUp Gold - Download Free Network Management Software<br> The most intuitive, comprehensive, and cost-effective network<br> management toolset available today. Delivers lowest initial<br> acquisition cost and overall TCO of any competing solution.<br> <a href="http://p.sf.net/sfu/whatsupgold-sd" target="_blank">http://p.sf.net/sfu/whatsupgold-sd</a><br> _______________________________________________<br> Xmlvm-developers mailing list<br> <a href="mailto:Xml...@li...">Xml...@li...</a><br> <a href="https://lists.sourceforge.net/lists/listinfo/xmlvm-developers" target="_blank">https://lists.sourceforge.net/lists/listinfo/xmlvm-developers</a><br> </div></div></blockquote></div><br><br clear="all"><br>-- <br>Domenico De Fano<br> </blockquote><br></font> |
From: Arno P. <ar...@pu...> - 2011-05-09 18:20:24
|
Troy, first of all, the reason for doing the C backend is to fully support the Java object model. With the Objective-C backend, this simple Java program cannot be cross-compiled: class Base { int x; } class Derived extends Base { int x; } This is just one of several problems when trying to use the Objective-C object model to represent Java's object model. The C backend also features a fully-fledged garbage collector which was impossible for various reasons with Objective-C. Now to your question: lets assume you have interface I: interface I { public void foo(); } Then write a Java class as follows: class I_impl implements I { public native void foo(); } Cross-compile I_impl with the C backend and provide the implementation of I_impl.foo() as a C function. If you want I_impl to be a wrapper of an Objective-C object, you can add a helper field in Java: class I_impl implements I { private Object wrappedObjectiveCObject; public native void foo(); } Field 'wrappedObjectiveCObject' can then be 'abused' in the C code to save a reference to an Objective-C object. I would also suggest you take a look at xmlvm/doc/slides. There are a few slides highlighting some more details of the C backend. Arno On 5/9/11 11:00 AM, Troy Gaines wrote: > Hello everyone, > > Here's an issue we're having with the new C-backend. Originally, we > started using the cross-compatible Objective C library, which has served > us well. We used this for cross-compiling part of the application. The > rest we wrote by hand, since the interface was scoped to be different > between the two platforms. We're now trying to move to the new C > back-end but the semantics are now different. > > An example is how the Java Interface is cross-compiled. With the > cross-compatible library, it would generate an Objective C protocol. On > our side, we would create an Objective C class implementing the > protocol. With the posix target, it generates a C structure. > > What is the recommended way of making this transition? Am I missing > something? > > And thanks for all the hard work with this project! > > > > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > > > > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users |
From: Troy G. <tro...@gm...> - 2011-05-09 18:01:10
|
Hello everyone, Here's an issue we're having with the new C-backend. Originally, we started using the cross-compatible Objective C library, which has served us well. We used this for cross-compiling part of the application. The rest we wrote by hand, since the interface was scoped to be different between the two platforms. We're now trying to move to the new C back-end but the semantics are now different. An example is how the Java Interface is cross-compiled. With the cross-compatible library, it would generate an Objective C protocol. On our side, we would create an Objective C class implementing the protocol. With the posix target, it generates a C structure. What is the recommended way of making this transition? Am I missing something? And thanks for all the hard work with this project! |
From: Markus N. <mar...@gm...> - 2011-05-09 16:28:31
|
Hi, To be able to run targets using xcode (=> cross-compiling to the iphone) you will have to use MacOSX. Markus On Mon, May 9, 2011 at 9:25 AM, khaled chehab <khc...@gm...> wrote: > * > Hello, > > After choosing the build.xml in Eclipse IDE, and choosing the targets, the > console started showing some things it was doing, but then it gave me an > error, which is the following: > > "BUILD FAILED > /home/chehab/iphone/nbproject/xcode.xml:182: The following error occurred > while executing this line: > /home/chehab/iphone/nbproject/xcode.xml:185: Execute > failed: java.io.IOException: Cannot run program "/usr/bin/open": > java.io.IOException: error=2, No such file or directory" > > > What could this error be due to? > Note: I am using Linux Mint 10. > > Regards, > * > > > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > > |
From: khaled c. <khc...@gm...> - 2011-05-09 16:25:53
|
* Hello, After choosing the build.xml in Eclipse IDE, and choosing the targets, the console started showing some things it was doing, but then it gave me an error, which is the following: "BUILD FAILED /home/chehab/iphone/nbproject/xcode.xml:182: The following error occurred while executing this line: /home/chehab/iphone/nbproject/xcode.xml:185: Execute failed: java.io.IOException: Cannot run program "/usr/bin/open": java.io.IOException: error=2, No such file or directory" What could this error be due to? Note: I am using Linux Mint 10. Regards, * |
From: Panayotis K. <pan...@pa...> - 2011-05-08 14:37:07
|
On May 8, 2011, at 5:30 PM, khaled chehab wrote: > Hello, > > After choosing the build.xml in Eclipse IDE, and > choosing the targets, the console started showing some things it was doing, but > then it gave me an error, which is the following: > > > > "BUILD FAILED > /home/chehab/iphone/nbproject/xcode.xml:182: The following error occurred while executing this line: > /home/chehab/iphone/nbproject/xcode.xml:185: Execute failed: java.io.IOException: Cannot run program "/usr/bin/open": java.io.IOException: error=2, No such file or directory" > > > What could this error be due to? you need a mac to compile iPhone applications |
From: khaled c. <khc...@gm...> - 2011-05-08 14:31:01
|
* Hello, After choosing the build.xml in Eclipse IDE, and choosing the targets, the console started showing some things it was doing, but then it gave me an error, which is the following: "BUILD FAILED /home/chehab/iphone/nbproject/xcode.xml:182: The following error occurred while executing this line: /home/chehab/iphone/nbproject/xcode.xml:185: Execute failed: java.io.IOException: Cannot run program "/usr/bin/open": java.io.IOException: error=2, No such file or directory" What could this error be due to? Regards, * |
From: Arno P. <ar...@pu...> - 2011-05-07 17:14:24
|
instead of trying to 'glue' things together manually on the C side, I would suggest you create a .jar file with your business logic and then reference it via --in wherever you need it. I'm not sure what you mean with "Android library which has the business logic". If that business logic is dependent on Android API, it becomes effectively an Android project. In XMLVM, the entry point is AndroidAppLauncher that does Android specific initializations and then launches the main activity. Long in short: make sure that your business logic is not dependent on Android API. In the future it might make sense to allow a top-level iPhone window in a cross-compiled Android application to write a native iOS application, but we don't support that yet. Arno On 5/6/11 3:55 AM, Marko Žmak wrote: > This is the scenario I would like to have: > > - have an Android library project which has all the business logic > for an app > - have a separate Android project for the gui and whole app > - cross compile the Android library project to xcode library project > - have an xcode project for iPhone gui and whole app, which uses > the crosscompiled xcode library > > Is it possible? > What are the possible problems with this approach? > Have anyone tried it? > > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users |
From: Arno P. <ar...@pu...> - 2011-05-07 17:07:29
|
it should be easy to integrate an existing C library with XMLVM. Simply create a Java class with a native method. The native method can then call the external C library. I would suggest a similar approach for the other way around. Have the main entry point (the main() method) always in XMLVM so it can do the proper initializations, then call the C side. From there you can make callbacks into the generated C code. Of course you would have to understand the XMLVM-internal data structures. You can first create some Java code that does what you want to do in C and then look at the generated code to get an idea how to access the data structures. Arno On 5/6/11 3:42 AM, Palic, Darko wrote: > Hello all, > > I am evaluating if it would be possible to integrate the generated posix > code into a existing c-project. > For me it is currently not clear, how I could interop with the datatypes > in the posix-gen-code and the existing c-code? > > Does anybody here uses xmlvm as the part of a existing C-/C++-Project? > > bye, > Darko > > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users |
From: Arno P. <ar...@pu...> - 2011-05-07 06:54:24
|
you got the gist of it. Two things: 1. In your boolean expression, you don't have to go through the TIB to retrieve the function pointer. You can inline the function directly as a constant. 2. It may be possible that the XMLVM_VTABLE_xxx symbol isn't defined. This can happen if the method is not overridden. XMLVM performs compile-time optimizations and will not even generate a vtable entry for that method. In this case, the result should always be FALSE. Here a re-worked version: if (aSelector == @selector(tableView:heightForRowAtIndexPath:)) { #ifdef XMLVM_VTABLE_IDX_org_xmlvm_iphone_UITableViewDelegate_heightForRowAtIndexPath___ VTABLE_PTR f = ((org_xmlvm_iphone_UITableViewDelegate*) delegate_)->tib-> vtable[XMLVM_VTABLE_IDX_org_xmlvm_iphone_UITableViewDelegate_heightForRowAtIndexPath___org_xmlvm_iphone_UITableView_org_xmlvm_iphone_NSIndexPath]; return f != (VTABLE_PTR) org_xmlvm_iphone_UITableViewDelegate_heightForRowAtIndexPath___org_xmlvm_iphone_UITableView_org_xmlvm_iphone_NSIndexPath; #else return 0; #endif If the mailer messes up the indentation and you can't read it, I'll send it as an attachment. Arno On 5/6/11 2:50 AM, Markus Heberling wrote: > Hi, > > I have manually implemented optional method handling for 2 Methods from UITableViewDelegate. > > http://xmlvm-reviews.appspot.com/121001/ > > If you think that it is ok that way I would implement the other methods, too. > > Markus > > Am 06.05.2011 um 02:02 schrieb Arno Puder: > >> >> this is a loaded question. What you are effectively trying to do is to >> introduce optional methods into the Java language. I know that there >> once was a JSR for doing exactly that, but it never got adopted (and I >> don't know the reason why it didn't get adopted). >> >> I don't think such an annotation would help in this case. The C backend >> knows nothing about Objective-C. In fact, the parts that are in >> Objective-C are manually written (i.e., not generated) and injected into >> the C wrappers. Whoever writes the wrapper for UITableViewDelegate >> (probably me) has to do the 'magic' with respondsToSelector as Panayotis >> explained. >> >> Note that quite a while ago (sometime last year) we had a longer >> discussion on how to represent iOS API in Java when it comes to optional >> methods. Fact is, that we are constricted by the Java syntax and >> semantics and such an XMLVM-specific annotation can't help here. >> >> Arno >> >> >> On 5/5/11 12:24 PM, Markus Heberling wrote: >>> Hi. >>> >>> shouldn't this be done automagically by xmlvm? >>> >>> Like adding an @Optional annotation, that can be put on optional methods in java classes, and xmlvm will generate the correct respondsToSelector? >>> >>> >>> Regards, >>> Markus >>> >>> Am 05.05.2011 um 18:19 schrieb Arno Puder: >>> >>>> >>>> >>>> On 5/5/11 6:30 AM, Panayotis Katsaloulis wrote: >>>>> >>>>> On 05 Μαϊ 2011, at 11:35 π.μ., Markus Heberling wrote: >>>>> >>>>>> Hi, >>>>>> >>>>>> I'd like to use a UITableViewDelegate with the C Backend. Some methods >>>>>> in that class are optional. XMLVM generates stubs for the, that throw >>>>>> the XMLVM_NOT_IMPLEMENTED Error: >>>>>> >>>>>> JAVA_FLOAT >>>>>> org_xmlvm_iphone_UITableViewDelegate_heightForRowAtIndexPath___org_xmlvm_iphone_UITableView_org_xmlvm_iphone_NSIndexPath(JAVA_OBJECT >>>>>> me, JAVA_OBJECT n1, JAVA_OBJECT n2) >>>>>> { >>>>>> //XMLVM_BEGIN_WRAPPER[org_xmlvm_iphone_UITableViewDelegate_heightForRowAtIndexPath___org_xmlvm_iphone_UITableView_org_xmlvm_iphone_NSIndexPath] >>>>>> XMLVM_NOT_IMPLEMENTED(); >>>>>> //XMLVM_END_WRAPPER >>>>>> } >>>>>> >>>>>> I can override all of the methods, of course, but I rather would leave >>>>>> them out. What would be the correct way to handle optional methods? >>>>>> >>>>>> Markus >>>>> >>>>> I can't help you with the C backend, but I'll describe a bit what I did >>>>> in the same case with the ObjC backend, so that the C Gurus here could >>>>> advise the correct answer. >>>>> >>>>> The problem is, there is no "default" value for these (and all similar) >>>>> methods. Moreover, the iOS would behave different, when these methods >>>>> are present, and do something else, when these methods are missing. >>>>> >>>>> What I did on the ObjC backend was to do something similar to what (I >>>>> believe) Apple does. >>>>> First of all, *all* ObjC delegate methods exist and all point to their >>>>> Java counterpart. >>>>> Then the method that answers to the ObjC runtime if this method exists >>>>> (i.e. respondsToSelector) is overridden. If an actual Java-based >>>>> implementation exists, then respondsToSelector responds that the actual >>>>> ObjC delegate selector exists (although the ObjC selector *always* >>>>> exist). If it doesn't then it replies that this method does not exist. >>>>> >>>>> WIth such a trick it is possible to properly inform the UITableView that >>>>> an optional *Java* method exist, and have the desired/correct behavior. >>>> >>>> You can do the same with the C backend. The key is to implement >>>> respondsToSelector in UITableViewDelegate in such a way that it figures >>>> out if a Java method has been overridden or not. This can easily be done >>>> with the help of the vtable: if a method is overridden in a derived >>>> class, the vtable entry for that method will point to the implementation >>>> in the derived class. If the method has not been overridden, the vtable >>>> entry will still point to the implementation of the base class. The same >>>> trick is used in org_xmlvm_iphone_UIResponder.m (for the C backend) to >>>> check if methods such as touchesBegan: have been overridden. Here the >>>> relevant code sniplet from that file: >>>> >>>> VTABLE_PTR func = >>>> thiz->tib->vtable[XMLVM_VTABLE_IDX_org_xmlvm_iphone_UIResponder_touchesBegan___java_util_Set_org_xmlvm_iphone_UIEvent]; >>>> if (func == (VTABLE_PTR) >>>> org_xmlvm_iphone_UIResponder_touchesBegan___java_util_Set_org_xmlvm_iphone_UIEvent) >>>> { >>>> // vtable index for this method still points to the >>>> implementation of >>>> // class UIResponder. Delegate event to the next responder >>>> [[self nextResponder] touchesBegan:touches withEvent:event]; >>>> >>>> If the if-condition is true, the method has not been overridden. >>>> >>>> Hope this helps, >>>> Arno >>>> >>>> ------------------------------------------------------------------------------ >>>> WhatsUp Gold - Download Free Network Management Software >>>> The most intuitive, comprehensive, and cost-effective network >>>> management toolset available today. Delivers lowest initial >>>> acquisition cost and overall TCO of any competing solution. >>>> http://p.sf.net/sfu/whatsupgold-sd >>>> _______________________________________________ >>>> xmlvm-users mailing list >>>> xml...@li... >>>> https://lists.sourceforge.net/lists/listinfo/xmlvm-users >>> >> >> ------------------------------------------------------------------------------ >> WhatsUp Gold - Download Free Network Management Software >> The most intuitive, comprehensive, and cost-effective network >> management toolset available today. Delivers lowest initial >> acquisition cost and overall TCO of any competing solution. >> http://p.sf.net/sfu/whatsupgold-sd >> _______________________________________________ >> xmlvm-users mailing list >> xml...@li... >> https://lists.sourceforge.net/lists/listinfo/xmlvm-users > |
From: Marko Ž. <xm...@st...> - 2011-05-06 10:57:46
|
This is the scenario I would like to have: - have an Android library project which has all the business logic for an app - have a separate Android project for the gui and whole app - cross compile the Android library project to xcode library project - have an xcode project for iPhone gui and whole app, which uses the crosscompiled xcode library Is it possible? What are the possible problems with this approach? Have anyone tried it? |
From: Palic, D. <dar...@go...> - 2011-05-06 10:43:33
|
Hello all, I am evaluating if it would be possible to integrate the generated posix code into a existing c-project. For me it is currently not clear, how I could interop with the datatypes in the posix-gen-code and the existing c-code? Does anybody here uses xmlvm as the part of a existing C-/C++-Project? bye, Darko |
From: Palic, D. <dar...@go...> - 2011-05-06 10:40:11
|
Hello all, I've provided a patch to enable all users (for kickstarting) to execute easily the xmlvm without big knowledge about ANT, XMLVM-compiles and so on. The patch was provided last week, since then I've got no response. The idea was to have a ANT target, which ensures a compile/build and asks the user to provide the wished options to xmlvm. Right now, everyone has to know how to handle with the ant-targets. Now I think it should be much easier for kickstarting the project. Could you take a look into the patch, and give me a feedback? Of course, the best feedback would be a integration into the main stream. best regards, Darko |
From: Markus H. <ma...@ti...> - 2011-05-06 09:50:38
|
Hi, I have manually implemented optional method handling for 2 Methods from UITableViewDelegate. http://xmlvm-reviews.appspot.com/121001/ If you think that it is ok that way I would implement the other methods, too. Markus Am 06.05.2011 um 02:02 schrieb Arno Puder: > > this is a loaded question. What you are effectively trying to do is to > introduce optional methods into the Java language. I know that there > once was a JSR for doing exactly that, but it never got adopted (and I > don't know the reason why it didn't get adopted). > > I don't think such an annotation would help in this case. The C backend > knows nothing about Objective-C. In fact, the parts that are in > Objective-C are manually written (i.e., not generated) and injected into > the C wrappers. Whoever writes the wrapper for UITableViewDelegate > (probably me) has to do the 'magic' with respondsToSelector as Panayotis > explained. > > Note that quite a while ago (sometime last year) we had a longer > discussion on how to represent iOS API in Java when it comes to optional > methods. Fact is, that we are constricted by the Java syntax and > semantics and such an XMLVM-specific annotation can't help here. > > Arno > > > On 5/5/11 12:24 PM, Markus Heberling wrote: >> Hi. >> >> shouldn't this be done automagically by xmlvm? >> >> Like adding an @Optional annotation, that can be put on optional methods in java classes, and xmlvm will generate the correct respondsToSelector? >> >> >> Regards, >> Markus >> >> Am 05.05.2011 um 18:19 schrieb Arno Puder: >> >>> >>> >>> On 5/5/11 6:30 AM, Panayotis Katsaloulis wrote: >>>> >>>> On 05 Μαϊ 2011, at 11:35 π.μ., Markus Heberling wrote: >>>> >>>>> Hi, >>>>> >>>>> I'd like to use a UITableViewDelegate with the C Backend. Some methods >>>>> in that class are optional. XMLVM generates stubs for the, that throw >>>>> the XMLVM_NOT_IMPLEMENTED Error: >>>>> >>>>> JAVA_FLOAT >>>>> org_xmlvm_iphone_UITableViewDelegate_heightForRowAtIndexPath___org_xmlvm_iphone_UITableView_org_xmlvm_iphone_NSIndexPath(JAVA_OBJECT >>>>> me, JAVA_OBJECT n1, JAVA_OBJECT n2) >>>>> { >>>>> //XMLVM_BEGIN_WRAPPER[org_xmlvm_iphone_UITableViewDelegate_heightForRowAtIndexPath___org_xmlvm_iphone_UITableView_org_xmlvm_iphone_NSIndexPath] >>>>> XMLVM_NOT_IMPLEMENTED(); >>>>> //XMLVM_END_WRAPPER >>>>> } >>>>> >>>>> I can override all of the methods, of course, but I rather would leave >>>>> them out. What would be the correct way to handle optional methods? >>>>> >>>>> Markus >>>> >>>> I can't help you with the C backend, but I'll describe a bit what I did >>>> in the same case with the ObjC backend, so that the C Gurus here could >>>> advise the correct answer. >>>> >>>> The problem is, there is no "default" value for these (and all similar) >>>> methods. Moreover, the iOS would behave different, when these methods >>>> are present, and do something else, when these methods are missing. >>>> >>>> What I did on the ObjC backend was to do something similar to what (I >>>> believe) Apple does. >>>> First of all, *all* ObjC delegate methods exist and all point to their >>>> Java counterpart. >>>> Then the method that answers to the ObjC runtime if this method exists >>>> (i.e. respondsToSelector) is overridden. If an actual Java-based >>>> implementation exists, then respondsToSelector responds that the actual >>>> ObjC delegate selector exists (although the ObjC selector *always* >>>> exist). If it doesn't then it replies that this method does not exist. >>>> >>>> WIth such a trick it is possible to properly inform the UITableView that >>>> an optional *Java* method exist, and have the desired/correct behavior. >>> >>> You can do the same with the C backend. The key is to implement >>> respondsToSelector in UITableViewDelegate in such a way that it figures >>> out if a Java method has been overridden or not. This can easily be done >>> with the help of the vtable: if a method is overridden in a derived >>> class, the vtable entry for that method will point to the implementation >>> in the derived class. If the method has not been overridden, the vtable >>> entry will still point to the implementation of the base class. The same >>> trick is used in org_xmlvm_iphone_UIResponder.m (for the C backend) to >>> check if methods such as touchesBegan: have been overridden. Here the >>> relevant code sniplet from that file: >>> >>> VTABLE_PTR func = >>> thiz->tib->vtable[XMLVM_VTABLE_IDX_org_xmlvm_iphone_UIResponder_touchesBegan___java_util_Set_org_xmlvm_iphone_UIEvent]; >>> if (func == (VTABLE_PTR) >>> org_xmlvm_iphone_UIResponder_touchesBegan___java_util_Set_org_xmlvm_iphone_UIEvent) >>> { >>> // vtable index for this method still points to the >>> implementation of >>> // class UIResponder. Delegate event to the next responder >>> [[self nextResponder] touchesBegan:touches withEvent:event]; >>> >>> If the if-condition is true, the method has not been overridden. >>> >>> Hope this helps, >>> Arno >>> >>> ------------------------------------------------------------------------------ >>> WhatsUp Gold - Download Free Network Management Software >>> The most intuitive, comprehensive, and cost-effective network >>> management toolset available today. Delivers lowest initial >>> acquisition cost and overall TCO of any competing solution. >>> http://p.sf.net/sfu/whatsupgold-sd >>> _______________________________________________ >>> xmlvm-users mailing list >>> xml...@li... >>> https://lists.sourceforge.net/lists/listinfo/xmlvm-users >> > > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users |
From: Arno P. <ar...@pu...> - 2011-05-06 00:02:40
|
this is a loaded question. What you are effectively trying to do is to introduce optional methods into the Java language. I know that there once was a JSR for doing exactly that, but it never got adopted (and I don't know the reason why it didn't get adopted). I don't think such an annotation would help in this case. The C backend knows nothing about Objective-C. In fact, the parts that are in Objective-C are manually written (i.e., not generated) and injected into the C wrappers. Whoever writes the wrapper for UITableViewDelegate (probably me) has to do the 'magic' with respondsToSelector as Panayotis explained. Note that quite a while ago (sometime last year) we had a longer discussion on how to represent iOS API in Java when it comes to optional methods. Fact is, that we are constricted by the Java syntax and semantics and such an XMLVM-specific annotation can't help here. Arno On 5/5/11 12:24 PM, Markus Heberling wrote: > Hi. > > shouldn't this be done automagically by xmlvm? > > Like adding an @Optional annotation, that can be put on optional methods in java classes, and xmlvm will generate the correct respondsToSelector? > > > Regards, > Markus > > Am 05.05.2011 um 18:19 schrieb Arno Puder: > >> >> >> On 5/5/11 6:30 AM, Panayotis Katsaloulis wrote: >>> >>> On 05 Μαϊ 2011, at 11:35 π.μ., Markus Heberling wrote: >>> >>>> Hi, >>>> >>>> I'd like to use a UITableViewDelegate with the C Backend. Some methods >>>> in that class are optional. XMLVM generates stubs for the, that throw >>>> the XMLVM_NOT_IMPLEMENTED Error: >>>> >>>> JAVA_FLOAT >>>> org_xmlvm_iphone_UITableViewDelegate_heightForRowAtIndexPath___org_xmlvm_iphone_UITableView_org_xmlvm_iphone_NSIndexPath(JAVA_OBJECT >>>> me, JAVA_OBJECT n1, JAVA_OBJECT n2) >>>> { >>>> //XMLVM_BEGIN_WRAPPER[org_xmlvm_iphone_UITableViewDelegate_heightForRowAtIndexPath___org_xmlvm_iphone_UITableView_org_xmlvm_iphone_NSIndexPath] >>>> XMLVM_NOT_IMPLEMENTED(); >>>> //XMLVM_END_WRAPPER >>>> } >>>> >>>> I can override all of the methods, of course, but I rather would leave >>>> them out. What would be the correct way to handle optional methods? >>>> >>>> Markus >>> >>> I can't help you with the C backend, but I'll describe a bit what I did >>> in the same case with the ObjC backend, so that the C Gurus here could >>> advise the correct answer. >>> >>> The problem is, there is no "default" value for these (and all similar) >>> methods. Moreover, the iOS would behave different, when these methods >>> are present, and do something else, when these methods are missing. >>> >>> What I did on the ObjC backend was to do something similar to what (I >>> believe) Apple does. >>> First of all, *all* ObjC delegate methods exist and all point to their >>> Java counterpart. >>> Then the method that answers to the ObjC runtime if this method exists >>> (i.e. respondsToSelector) is overridden. If an actual Java-based >>> implementation exists, then respondsToSelector responds that the actual >>> ObjC delegate selector exists (although the ObjC selector *always* >>> exist). If it doesn't then it replies that this method does not exist. >>> >>> WIth such a trick it is possible to properly inform the UITableView that >>> an optional *Java* method exist, and have the desired/correct behavior. >> >> You can do the same with the C backend. The key is to implement >> respondsToSelector in UITableViewDelegate in such a way that it figures >> out if a Java method has been overridden or not. This can easily be done >> with the help of the vtable: if a method is overridden in a derived >> class, the vtable entry for that method will point to the implementation >> in the derived class. If the method has not been overridden, the vtable >> entry will still point to the implementation of the base class. The same >> trick is used in org_xmlvm_iphone_UIResponder.m (for the C backend) to >> check if methods such as touchesBegan: have been overridden. Here the >> relevant code sniplet from that file: >> >> VTABLE_PTR func = >> thiz->tib->vtable[XMLVM_VTABLE_IDX_org_xmlvm_iphone_UIResponder_touchesBegan___java_util_Set_org_xmlvm_iphone_UIEvent]; >> if (func == (VTABLE_PTR) >> org_xmlvm_iphone_UIResponder_touchesBegan___java_util_Set_org_xmlvm_iphone_UIEvent) >> { >> // vtable index for this method still points to the >> implementation of >> // class UIResponder. Delegate event to the next responder >> [[self nextResponder] touchesBegan:touches withEvent:event]; >> >> If the if-condition is true, the method has not been overridden. >> >> Hope this helps, >> Arno >> >> ------------------------------------------------------------------------------ >> WhatsUp Gold - Download Free Network Management Software >> The most intuitive, comprehensive, and cost-effective network >> management toolset available today. Delivers lowest initial >> acquisition cost and overall TCO of any competing solution. >> http://p.sf.net/sfu/whatsupgold-sd >> _______________________________________________ >> xmlvm-users mailing list >> xml...@li... >> https://lists.sourceforge.net/lists/listinfo/xmlvm-users > |
From: Markus H. <ma...@ti...> - 2011-05-05 19:25:14
|
Hi. shouldn't this be done automagically by xmlvm? Like adding an @Optional annotation, that can be put on optional methods in java classes, and xmlvm will generate the correct respondsToSelector? Regards, Markus Am 05.05.2011 um 18:19 schrieb Arno Puder: > > > On 5/5/11 6:30 AM, Panayotis Katsaloulis wrote: >> >> On 05 Μαϊ 2011, at 11:35 π.μ., Markus Heberling wrote: >> >>> Hi, >>> >>> I'd like to use a UITableViewDelegate with the C Backend. Some methods >>> in that class are optional. XMLVM generates stubs for the, that throw >>> the XMLVM_NOT_IMPLEMENTED Error: >>> >>> JAVA_FLOAT >>> org_xmlvm_iphone_UITableViewDelegate_heightForRowAtIndexPath___org_xmlvm_iphone_UITableView_org_xmlvm_iphone_NSIndexPath(JAVA_OBJECT >>> me, JAVA_OBJECT n1, JAVA_OBJECT n2) >>> { >>> //XMLVM_BEGIN_WRAPPER[org_xmlvm_iphone_UITableViewDelegate_heightForRowAtIndexPath___org_xmlvm_iphone_UITableView_org_xmlvm_iphone_NSIndexPath] >>> XMLVM_NOT_IMPLEMENTED(); >>> //XMLVM_END_WRAPPER >>> } >>> >>> I can override all of the methods, of course, but I rather would leave >>> them out. What would be the correct way to handle optional methods? >>> >>> Markus >> >> I can't help you with the C backend, but I'll describe a bit what I did >> in the same case with the ObjC backend, so that the C Gurus here could >> advise the correct answer. >> >> The problem is, there is no "default" value for these (and all similar) >> methods. Moreover, the iOS would behave different, when these methods >> are present, and do something else, when these methods are missing. >> >> What I did on the ObjC backend was to do something similar to what (I >> believe) Apple does. >> First of all, *all* ObjC delegate methods exist and all point to their >> Java counterpart. >> Then the method that answers to the ObjC runtime if this method exists >> (i.e. respondsToSelector) is overridden. If an actual Java-based >> implementation exists, then respondsToSelector responds that the actual >> ObjC delegate selector exists (although the ObjC selector *always* >> exist). If it doesn't then it replies that this method does not exist. >> >> WIth such a trick it is possible to properly inform the UITableView that >> an optional *Java* method exist, and have the desired/correct behavior. > > You can do the same with the C backend. The key is to implement > respondsToSelector in UITableViewDelegate in such a way that it figures > out if a Java method has been overridden or not. This can easily be done > with the help of the vtable: if a method is overridden in a derived > class, the vtable entry for that method will point to the implementation > in the derived class. If the method has not been overridden, the vtable > entry will still point to the implementation of the base class. The same > trick is used in org_xmlvm_iphone_UIResponder.m (for the C backend) to > check if methods such as touchesBegan: have been overridden. Here the > relevant code sniplet from that file: > > VTABLE_PTR func = > thiz->tib->vtable[XMLVM_VTABLE_IDX_org_xmlvm_iphone_UIResponder_touchesBegan___java_util_Set_org_xmlvm_iphone_UIEvent]; > if (func == (VTABLE_PTR) > org_xmlvm_iphone_UIResponder_touchesBegan___java_util_Set_org_xmlvm_iphone_UIEvent) > { > // vtable index for this method still points to the > implementation of > // class UIResponder. Delegate event to the next responder > [[self nextResponder] touchesBegan:touches withEvent:event]; > > If the if-condition is true, the method has not been overridden. > > Hope this helps, > Arno > > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users |
From: Arno P. <ar...@pu...> - 2011-05-05 16:20:06
|
On 5/5/11 6:30 AM, Panayotis Katsaloulis wrote: > > On 05 Μαϊ 2011, at 11:35 π.μ., Markus Heberling wrote: > >> Hi, >> >> I'd like to use a UITableViewDelegate with the C Backend. Some methods >> in that class are optional. XMLVM generates stubs for the, that throw >> the XMLVM_NOT_IMPLEMENTED Error: >> >> JAVA_FLOAT >> org_xmlvm_iphone_UITableViewDelegate_heightForRowAtIndexPath___org_xmlvm_iphone_UITableView_org_xmlvm_iphone_NSIndexPath(JAVA_OBJECT >> me, JAVA_OBJECT n1, JAVA_OBJECT n2) >> { >> //XMLVM_BEGIN_WRAPPER[org_xmlvm_iphone_UITableViewDelegate_heightForRowAtIndexPath___org_xmlvm_iphone_UITableView_org_xmlvm_iphone_NSIndexPath] >> XMLVM_NOT_IMPLEMENTED(); >> //XMLVM_END_WRAPPER >> } >> >> I can override all of the methods, of course, but I rather would leave >> them out. What would be the correct way to handle optional methods? >> >> Markus > > I can't help you with the C backend, but I'll describe a bit what I did > in the same case with the ObjC backend, so that the C Gurus here could > advise the correct answer. > > The problem is, there is no "default" value for these (and all similar) > methods. Moreover, the iOS would behave different, when these methods > are present, and do something else, when these methods are missing. > > What I did on the ObjC backend was to do something similar to what (I > believe) Apple does. > First of all, *all* ObjC delegate methods exist and all point to their > Java counterpart. > Then the method that answers to the ObjC runtime if this method exists > (i.e. respondsToSelector) is overridden. If an actual Java-based > implementation exists, then respondsToSelector responds that the actual > ObjC delegate selector exists (although the ObjC selector *always* > exist). If it doesn't then it replies that this method does not exist. > > WIth such a trick it is possible to properly inform the UITableView that > an optional *Java* method exist, and have the desired/correct behavior. You can do the same with the C backend. The key is to implement respondsToSelector in UITableViewDelegate in such a way that it figures out if a Java method has been overridden or not. This can easily be done with the help of the vtable: if a method is overridden in a derived class, the vtable entry for that method will point to the implementation in the derived class. If the method has not been overridden, the vtable entry will still point to the implementation of the base class. The same trick is used in org_xmlvm_iphone_UIResponder.m (for the C backend) to check if methods such as touchesBegan: have been overridden. Here the relevant code sniplet from that file: VTABLE_PTR func = thiz->tib->vtable[XMLVM_VTABLE_IDX_org_xmlvm_iphone_UIResponder_touchesBegan___java_util_Set_org_xmlvm_iphone_UIEvent]; if (func == (VTABLE_PTR) org_xmlvm_iphone_UIResponder_touchesBegan___java_util_Set_org_xmlvm_iphone_UIEvent) { // vtable index for this method still points to the implementation of // class UIResponder. Delegate event to the next responder [[self nextResponder] touchesBegan:touches withEvent:event]; If the if-condition is true, the method has not been overridden. Hope this helps, Arno |
From: Panayotis K. <pan...@pa...> - 2011-05-05 13:30:23
|
On 05 Μαϊ 2011, at 11:35 π.μ., Markus Heberling wrote: > Hi, > > I'd like to use a UITableViewDelegate with the C Backend. Some methods in that class are optional. XMLVM generates stubs for the, that throw the XMLVM_NOT_IMPLEMENTED Error: > > JAVA_FLOAT org_xmlvm_iphone_UITableViewDelegate_heightForRowAtIndexPath___org_xmlvm_iphone_UITableView_org_xmlvm_iphone_NSIndexPath(JAVA_OBJECT me, JAVA_OBJECT n1, JAVA_OBJECT n2) > { > //XMLVM_BEGIN_WRAPPER[org_xmlvm_iphone_UITableViewDelegate_heightForRowAtIndexPath___org_xmlvm_iphone_UITableView_org_xmlvm_iphone_NSIndexPath] > XMLVM_NOT_IMPLEMENTED(); > //XMLVM_END_WRAPPER > } > > I can override all of the methods, of course, but I rather would leave them out. What would be the correct way to handle optional methods? > > Markus I can't help you with the C backend, but I'll describe a bit what I did in the same case with the ObjC backend, so that the C Gurus here could advise the correct answer. The problem is, there is no "default" value for these (and all similar) methods. Moreover, the iOS would behave different, when these methods are present, and do something else, when these methods are missing. What I did on the ObjC backend was to do something similar to what (I believe) Apple does. First of all, *all* ObjC delegate methods exist and all point to their Java counterpart. Then the method that answers to the ObjC runtime if this method exists (i.e. respondsToSelector) is overridden. If an actual Java-based implementation exists, then respondsToSelector responds that the actual ObjC delegate selector exists (although the ObjC selector *always* exist). If it doesn't then it replies that this method does not exist. WIth such a trick it is possible to properly inform the UITableView that an optional *Java* method exist, and have the desired/correct behavior. |
From: Markus H. <ma...@ti...> - 2011-05-05 08:36:08
|
Hi, I'd like to use a UITableViewDelegate with the C Backend. Some methods in that class are optional. XMLVM generates stubs for the, that throw the XMLVM_NOT_IMPLEMENTED Error: JAVA_FLOAT org_xmlvm_iphone_UITableViewDelegate_heightForRowAtIndexPath___org_xmlvm_iphone_UITableView_org_xmlvm_iphone_NSIndexPath(JAVA_OBJECT me, JAVA_OBJECT n1, JAVA_OBJECT n2) { //XMLVM_BEGIN_WRAPPER[org_xmlvm_iphone_UITableViewDelegate_heightForRowAtIndexPath___org_xmlvm_iphone_UITableView_org_xmlvm_iphone_NSIndexPath] XMLVM_NOT_IMPLEMENTED(); //XMLVM_END_WRAPPER } I can override all of the methods, of course, but I rather would leave them out. What would be the correct way to handle optional methods? Markus |
From: Arno P. <ar...@pu...> - 2011-05-02 03:00:15
|
I think this is related to some missing dependencies in the Cocoa Wrappers. I added what I believe to be missing. Please try again. Arno On 4/29/11 6:33 AM, Markus Heberling wrote: > Hi, > > I have created a fresh project with java -Xmx512M -jar xmlvm.jar > --skeleton=iphone --app-name=test > > I have changed the build files to use the iphonec target instead of the > iphone target. Compilation in XCode fails: > > /tmp/test/dist/../build/xcode/src/app/org_xmlvm_iphone_UIImage.m:29:38: > error: org_xmlvm_iphone_CGImage.h: No such file or directory > > Regards, > Markus > > > > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > > > > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users |
From: Sascha H. <sa...@xm...> - 2011-05-01 13:45:26
|
There are already a few XMLVM applications in the AppStore. From what we know, XMLVM does comply with AppStore terms and conditions, so this should not be a problem. // Sascha On Sat, Apr 30, 2011 at 8:10 PM, John Comeau <jc...@un...> wrote: > XMLVM outputs pure objective-c using the 'iphone' backend. So there is > no reason it should not be accepted, so long as it's compiled and > signed properly using the Apple iOS SDK. > > That said, what the iPhone backend currently supports is quite limited. > > As for Android, if you develop using the Android SDK and then use > XMLVM to port to the iPhone, you're writing a pure Android app to > begin with. So again, no reason for it not to be accepted. > > Mind you, I haven't myself developed anything yet with the intention > of putting it into either App Store. I'm just going by what I've been > reading at StackOverflow and other places on the web, and my own > experience using the Android SDK with XMLVM. > > On Sat, Apr 30, 2011 at 9:49 AM, <len...@gm...> wrote: > > Hi prob asked before but can XMLVM b used to write cross platform > iOS/Android apps that will b approved by the App Stores? Thanks Regards > Lennie > > Sent via my BlackBerry from Vodacom - let your email find you! > > > > > ------------------------------------------------------------------------------ > > WhatsUp Gold - Download Free Network Management Software > > The most intuitive, comprehensive, and cost-effective network > > management toolset available today. Delivers lowest initial > > acquisition cost and overall TCO of any competing solution. > > http://p.sf.net/sfu/whatsupgold-sd > > _______________________________________________ > > xmlvm-users mailing list > > xml...@li... > > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > > > > > > -- > John Comeau <jc...@un...> http://jc.unternet.net/ > "A place for everything, and everything > all over the place" > > > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > |
From: John C. <jc...@un...> - 2011-04-30 18:10:47
|
XMLVM outputs pure objective-c using the 'iphone' backend. So there is no reason it should not be accepted, so long as it's compiled and signed properly using the Apple iOS SDK. That said, what the iPhone backend currently supports is quite limited. As for Android, if you develop using the Android SDK and then use XMLVM to port to the iPhone, you're writing a pure Android app to begin with. So again, no reason for it not to be accepted. Mind you, I haven't myself developed anything yet with the intention of putting it into either App Store. I'm just going by what I've been reading at StackOverflow and other places on the web, and my own experience using the Android SDK with XMLVM. On Sat, Apr 30, 2011 at 9:49 AM, <len...@gm...> wrote: > Hi prob asked before but can XMLVM b used to write cross platform iOS/Android apps that will b approved by the App Stores? Thanks Regards Lennie > Sent via my BlackBerry from Vodacom - let your email find you! > > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > -- John Comeau <jc...@un...> http://jc.unternet.net/ "A place for everything, and everything all over the place" |
From: <len...@gm...> - 2011-04-30 16:49:44
|
Hi prob asked before but can XMLVM b used to write cross platform iOS/Android apps that will b approved by the App Stores? Thanks Regards Lennie Sent via my BlackBerry from Vodacom - let your email find you! |