Difference between Ti.App & Titanium.App
Hiya,
Just a quick tech question:
What's the difference between the expressions "Ti.App" and "Titanium.App", and when is it appropriate to use one over the other?
Thanks!
Glen
3 Answers
-
Accepted Answer
Hi Glen
The Ti. namespace is an alias to Titanium. . They are synonymous and can be used interchangeably. Personally, I only ever use Ti. because there is no disadvantage to it.
Hence, in your example, I would only ever use
Ti.App.
Hope this helps
-
Hi Glen,
They are the same thing one is just a shortcut. I like using Ti just so the page doesn't look so messy. -
Yes, Ti.namespace is the shortcut for Titanium.namespace.