June 2010
2 posts
Sproutcore: WTF Am I Downloading?
There’s always been a little confusion over what exactly you’re downloading when you get Sproutcore. Sproutcore Abbot Abbot is the name for the new-ish build tools that compile Sproutcore 1.0 projects. It includes all of our favourites, like sc-gen, sc-server, and sc-build. When you do gem install sproutcore what you’re actually downloading is the Abbot build tools. Then...
Jun 4th
2 notes
Including a Framework with Your Project
Including external code in your project is very important in saving time and headaches with Sproutcore. In this post, I’ll quickly go over how to add Sproutcore UI to a project. sc-init MyProject && cd my_project Now that you’ve got a generated Sproutcore, we’re going to create the frameworks folder. mkdir frameworks && cd frameworks Now we’re in the...
Jun 2nd
2 notes
April 2010
1 post
Sproutcore and Flot
Quick note for fellow dummies. When you’re trying to use Flot with SproutCore, do the following: layerDidChange: function() { this.set('layerNeedsUpdate', YES); }.observes('layer'), updateLayer: function() { sc_super(); var layer = this.get('layer'); if (layer) $.plot(layer, this.get('data')); } Initially I was trying to use updateLayer as per this thread on the...
Apr 11th
2 notes
March 2010
1 post
3 tags
Using Chance to Build SproutCore Themes
For some people, developing themes is just about the worst thing about working with SproutCore (not that it’s hard, but everything else is easy!). Thankfully, Alex Iskander has developed a new program in Ruby to help making theming a little easier. What’s in it for you? It’s got automatic support for spriting (and slicing). Awesome. He’s also using it to develop a new...
Mar 12th
4 notes