Skip to content

Instantly share code, notes, and snippets.

@kwhinnery
Created September 7, 2012 19:03
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kwhinnery/3668647 to your computer and use it in GitHub Desktop.
Save kwhinnery/3668647 to your computer and use it in GitHub Desktop.
Kevin's Alloy Notes from Codestrong app

Alloy Notes

Blockers

None

Framework Needs

  • Need attributes for basic logic (if this, show this)
  • Need attribute for not adding something to the view hierarchy automatically
  • Need to use JS in XML attributes - use case: use L() macro for TextField hintText property
  • Wrap all controller code in a try/catch which outputs more useful information for debugging
  • Titanium: try and type cast double to string for textField.value = [a JS Number], don't throw exception

Would be cool if...

  • we could provide built in validators for text fields, like e-mail addresses and whatnot
  • we could provide a new device query for screen density, or some nice way of using one set of images across all platforms.

Tools

  • Would be cool is Studio could code complete $.[my thing that I added] in a controller
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment