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> |