SproutCore Guides: Getting Started: "in apps/todos/todos.js
// updating previous code
Todos.todoListController = SC.ArrayController.create({
// Initialize the array controller with an empty array.
content: [],
// Creates a new todo with the passed title, then adds it
// to the array.
createTodo: function(title) {
var todo = Todos.Todo.create({ title: title });
this.pushObject(todo);
}
});"
'via Blog this'