Desktop Kitchen Sink - Blank White Screen
Hi all, I'm a complete n00b when it comes to appcelerator but am very interested in getting to grips with desktop and mobile app development. I've limited JS knowledge but should be able to get started with this while learning JS properly. I've downloaded the Desktop Kitchen Sink but when I try to launch the program, it's just a blank white screen, I presumed it would have a demo of some of the API functionality, am I incorrect in this assumption or is there something wrong? I've tried this on Titanium Developer 1.2.1 on two windows 7 machines.
6 Answers
-
You will want to roll this patch into your \Resources\js\main.js
https://github.com/somethingkindawierd/KitchenSinkDesktop/commit/19945119148e1cd4d0ccced2a7494332f518a02b#diff-0
After I did that, it worked for me (as of 86d5c04)
-
The same thing happened to me as well when I tried to use the Desktop Kitchen Sink. It appears to be broken. I managed to get something out of it by copying the topics directory to a place where the app could find it (it doesn't find it in the default location and it's the reason why you don't see anything).
-
Yes I see what you mean, I've copied the topics folder to the resources folder after seeing this in build.py -
TOPICS_OUTDIR = 'Resources/topics'but it's still only half working - see this image:
http://img63.imageshack.us/img63/7557/kitchen1q.jpgI will try to debug what is wrong, but I thought it was something I did wrong, hopefully simple enough to fix.
-
No you didn't do anything wrong. The Desktop Kitchen Sink app is simply broken because it got neglected. Iphone and ipad is what gets most attention these days. Even android is getting left behind.
After going through the same thing you had to go through I decided to stick with QT for cross platform desktop development. I recommend doing the same for everybody else if you are not stuck with lots of JavaScript code.
-
oh. I wanted to start iPhone development with Titanium but then when I heard about the new terms and conditions I wondered if there is any point? Thanks for all the info guys.
-
It is broken in fact, which is a real shame…
The good side is that it is very easy to fix…
just open main.js and replace the KitchenSink.Topic function with the following…
I really dont understand why they are not getting this fixed…KitchenSink.Topic = function(file)
{// Load topic content text this.contentDiv = $('<div class="topic_content">'); var zfile = Ti.fs.getFile(file); //var text = zfile.read(); this.contentDiv.html(zfile.read().toString()); this.contentDiv.hide(); this.name = $('h1', this.contentDiv).first().text(); var sections = []; $('h2', this.contentDiv).each(function() { sections.push($(this).text()); }); this.sections = sections;
}