Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

extensions documentation clarification.

in the documentation…
http://developer.appcelerator.com/doc/mobile/iphone/module_sdk

Question: is this documentation section correct?
there is a reference to:
mymodule
MyFirstModule
Titanium.Myfirst
var mymodule = Titanium.Myfirst

its a little confusing as far as naming conventions go.

there is a section:

<modules>
<module version="0.1">mymodule</module>
</modules>

Currently, all modules will be available only via the Titanium namespace. For example, if your module is named MyFirstModule, you would access module APIs via the API: Titanium.Myfirst. The module in the name will automatically be removed when resolving your module. Also, all characters after the first are always lower-cased.

Example:

var mymodule = Titanium.Myfirst;

This will simply assign your module to a variable. You can simply ignore the return value since we're just making the app load the app.

At this point, the module should have been loaded and you should see a log message in the console of Titanium Developer.

— asked June 7th 2010 by vincent youmans
  • extensions
  • iphone
  • native
  • obj-c
0 Comments

0 Answers

The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.