As part of a recent project we were tasked with creating a desktop application in addition to an iPad application. As we have in the past we used Appcelerator Titanium as the platform for building these applications. A project with a lot of potential, but it currently has very poor documentation.
In short Titanium allows the development of iOS and desktop application with the use of HTML and Javascript. A mac or iOS application has a Application Data directory stored (in the Library directory on a mac). This is really the only place one has the ability to write files within the application being developed. However, when developing a page in javascript (and generated HTML) there isn't a documented way to reference one of these files. This is a problem for anyone who wants to update their application via the web.
After digging in the Titanium Desktop SDK we located the solution. The location (src attribute for an image) needs to be prefixed with file:///. This is similar to using the app://prefix which refers to the location of the application resources itself.
If anyone else has any similar undocumented hints leave a comment.
Need a fresh perspective on a tough project?
Let’s talk about how RDG can help.