How to add a custom module to Titanium Mobile?
I'm trying to create a simple custom module, as shown in the old documentation, here:
http://www.codestrong.com/timobile/guides/iphone_module_development/
But this doesn't seem to work. I get an error "Result of expression Titanium.First [undefined] is not an object…"
I also don't see an example of a custom module in the Kitchen Sink app.
6 Answers
-
Hasn't anyone done a custom module in 1.0?
-
I get the same problem - I heard that modules are working in 1.0 but I can't get it to work using the firstModule example.
-
Here is the documentation I found:
http://www.codestrong.com/timobile/guides/iphone_module_development/
http://www.codestrong.com/timobile/module_sdk_09/
When I tried the instructions labeled module_sdk_09 I get the following error:
TiModule.h: No such file or directory
So, this example is apparently not quite up to date. Jeff says he is working on a full blown example. Hopefully that will be up soon and we can start seeing some documentation on how to build custom modules.
-
I believe this was recently added to the developer documentation:
http://developer.appcelerator.com/doc/mobile/iphone/module_sdk
-
I'm also getting this error: "Result of expression Titanium.MyFirst [undefined] is not an object…"
-
Looks like the answer to this problem is here.