Click here to get the updated file, otherwise read on 🙂
If you just want the vsdoc, here you go: Titanium-vsdoc.js
This weekend, I finally broke down and [re]learned Python. Got acquainted with Git (which I am really starting to dig). And for the trifecta, signed up for github. Why? Well, I had a sudden burst of inspiration while trying to write a walk through on how to generate a vsdoc using my C# app. About half way through I realized this was just too much work; not to mention really lame. So I buckled down for a few hours and got something that is good enough to throw out to the world. This time…it’s open source (David Caruso stole my keyboard…I swear!).
Changes from v1:
Code to generate the vsdoc is released
Includes Titanium objects
Added module events
Types now return the correct type. (ie. Function returns an array, VS will treat it as an array)
Unfortunately, Visual Studio doesn’t support comments for objects. Which, of course, a large portion of the vsdoc is made up of objects.
Anyway, if you’re interested you can view my forked project here: JeremyMelton/titanium_mobile
This has now been merged into the titanium mobile master: https://github.com/appcelerator/titanium_mobile
How to use the vsdoc
- Download the vsdoc
- Add the Titanium.vsdoc.js to your project
- In the [js] file you want to use Titanium add the following line to the first line of the file.
- Use it!
Any feedback is welcome.