You must Login before you can answer or comment on any questions.
I need to use some of the date related libraries from MooTools, can I use it for my iPhone app?
If yes, then how can I add the MooTools library to my project?
Contrary to what you just read. You can use MooTools. I can't speak for jQuery, but I don't think it would make sense since with jQuery, it's all about the DOM.
Look under Server-Side Download
I've used it for one of my Titanium projects and it works.
As far as the "Too many errors" problem, if you add this coment to the external library, Ti will ignore the errors. I started to use Thanasis Polychronakis' fix here: http://developer.appcelerator.com/question/27621/just-started---want-to-use-googles-closure-tools, but looking at the code in compiler.js, it is just looking for the strings 'jQuery' and 'Sizzle' to skip the message. I added the comment to jQ mobile and it works....
/* jQuery Sizzle - these are to fool the Ti compiler into not reporting errors! */
@Bill- Does jQuery bear the same fate? :)
Yes, same for jQuery. If you try Ti.include('jquery-1.4.2.min.js') (or whatever), for example, you'll get errors right away when running the app. It's looking for "window".
I tried faking it out once by creating variables named window, document, and navigator, making each one an empty object literal. But I then it freaked out that it couldn't find some property of one of those objects -- I realized I was playing a loser's game and gave up!
Good call, David. I'm sorry I missed the server-side Mootools, Dev.
Sigh... Will see what I can make of it.
Has anyone else had this problem or found a work around?
You can customize the Mootools packages here: http://mootools.net/core
Depending on what you're wanting, you can get around those errors. The errors happen because certain packages need the window DOM.
I just started using Mootools to rewrite one of my apps in a more MVC-esque fashion. Mootool's class creation and helper methods (for arrays, strings, etc.) are great...so I recommend using it. It all gets compiled in the end anyway.
My custom Mootools download includes: Core, Array, Function, Number, String, Hash, Class, and Class.Extra.
Short answer: no.
I hope this was nevertheless helpful!
Think you can help? Login to answer this question!