Tag Archives: sproutcore

What’s with the guid/uuid directory created by sc-build?

When I run sc-build, the output is placed in ./tmp/build/static/app_name/en/b82a3bf91217954903a4fd7da14707caa9f47520. This page in the Sproutcore wiki suggests that the guid/uuid directory is the build number. Deploying When you are ready to deploy your app, all you need to do is run sc-build. sc-build generates a bundle of HTML, JS, and CSS inside a directory with [...]

Sproutcore CRUD tutorial using SC.TableView

Note This tutorial is for Sproutcore 1.X. I’ve written a similar tutorial for Sproutcore 2 here. OK. I’ve reach the point in my Sproutcore understanding where I feel I can attempt to write a CRUD demo app. Get the code here. See it in action here. The demo app allows the user to: Create a [...]

Using the latest Sproutcore code from the master branch

Got this tip from Colin Codes. Standard Sproutcore Install I’ve installed Sproutcore using However, this is NOT the latest development code. It is the latest released code. Using the Latest Code from the Master Branch All you have to do is to clone the latest sproutcore code from github into a frameworks directory within your [...]

Sproutcore sc-server undefined method ‘empty?’ (NoMethodError)

Over the weekend, I took the latest copy of Sproutcore Abbot build tools following the instructions provided in http://wiki.sproutcore.com/Abbot-Setting+Up. Upon starting sc-server, I get the error ./sc-server:9:in `’: undefined method `empty?’ for nil:NilClass (NoMethodError) I checked the ruby code inside sc-server: I think Abbot 1.4 has changed so that it can only be run from [...]

How to use Sproutcore SelectFieldView (HTML select)

objects is an array of name (text to show to the user) and value (code to store in the database) pairs. nameKey specifies the name of the property that contains the text that to show the user. valueKey specifies the name of the property that contains the value to store. For some reason, I could [...]

Sproutcore: login sample with async Ajax call

I was trying to understand how a “login” user case scenario would work with Sproutcore. The sproutweet sample was a good starting point but it took me a while to come to grips with how it works.  The complexities of twitter integration took time to understand. I wrote this bare-bones login sample to experiment on [...]

Sproutcore: page navigation using routes

I found the official Sproutcore 1.0 sample a bit difficult to understand for a newbie like me.    I’ve written a bare-bone basic route_sample to show how to use the SC.routes class.    Get the code here. See it in action here. The sample performs the following functions:   There are two pages: one_page and two_page. Upon start up, [...]

My take on “What is Sproutcore?”

  Here’s the offical line. In short, it is a tool for building a rich desktop client application.   It communicates to the server using standard web protocols: HTTP and XML/JSON.  The server can be developed in any technology as long as it can support the HTTP and XML/JSON protocol. How is it different from standard web [...]

Create a second app in Sproutcore

Just say you created the Hello World app with: This will create folder structure like: To create a second app called bye_world, use You will then have the directory structure sc-init has the command line: Tweet

Sproutcore – Back to the future with client server!

Just stumbled on Sproutcore. Very interesting client side javascript MVC framework.  Abstracts HTML/CSS/DOM to make it more like good ol’ WinForms.  There’s even work on a WinForms like designer. We are back full circle (again!) 1970-80′s: Centralized mainframe apps 1990′s: Client-server (Winform apps using DCOM, SOM … yes I worked on IBM SOM for those who remember it) [...]