The Frozen Canuck is at it again. This time with I think the first public
explanation of how to build a custom view with the new SC.View class. Notice
that SproutCore 1.0 views are built using a simple render() method where you
generate HTML. It’s a really easy API and it just so happens to be
extremely fast, especially in IE where DOM manipulation is very expensive.
Check it: Creating a Simple Custom View in SproutCore: Part1
One of the coolest parts of the new SproutCore View layer is its ability to
use aspect-based programming to add behaviors to views.
Aspect-based programming is built on the premise that often objects that
don’t follow from the same class hierarchy may in fact need similar
This is especially true in GUI programming when designers come to you and say
something like “I came up with this new widget - it looks kind of like a
progress bar but it acts like a button when you click on it”.
In SproutCore, you capture these common behaviors in a “mixin”. A mixin
is just a colle... (more)
“From where we sit now, the code is shaping up quite nicely. Soon enough,
if you have a SproutCore app, you’ll be able to just drop an editor right
into your app. As of today, anyone with a website can grab a copy of Bespin
and include the editor component very simply in their pages. We figure that
we’ve got another month of work to do before we’re ready to update
bespin.mozilla.com. We have a whole bunch of features to port over from the
old code and we need to make good on another big part of the Reboot promise:
opening Bespin up for plugins. It’s been hard even for Bespin core... (more)
Every so often a few technology trends converge that yield results much
greater than their individual parts. I think we have reached one of those
moments with mobile devices (like the iPad) and HTML5.
In many ways, the iPad is the perfect web device. It’s a lean-back
experience optimized around consuming content. With HTML5 (which mobile
Safari does better than just about anything else), the kind of experience you
can create on these devices is just really spectacular. You only need to use
the NPR demo we wrote earlier this year for a few minutes to realize this is
obviously t... (more)
SOA & WOA Magazine
Bruz Marzolf is writing a series of blog posts implementing a simple time
tracking app in various client-side rich web app frameworks. He just finished
his example in SproutCore and including some source code.
Here’s what he had to say:
SproutCore provides a higher level abstraction that manages when objects are
changed and need to be updated, and when they’re busy and shouldn’t be
modified, for instance.
Bruz’ code is a good example of a basic starter app that’s a little more
complex than our todos demo. I’m looking forward to his additional entries
in this s... (more)