• If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

Runtime-Introduction

This version was saved 14 years, 4 months ago View current version     Page history
Saved by Charles Jolley
on November 11, 2009 at 2:02:09 pm
 

The SproutCore Runtime framework provides the basic tools you need to write large-scale applications in JavaScript.  This framework will form the fabric of your application.  You will use it to define your classes, connect them together, to benchmark and test your results as well. 

 

In addition, Runtime is can be used as a free-standing library.  You can down a built version of it and use it to create dynamic web pages when you don't want to use the full blow SproutCore application stack.

 

This programming guide will tell you everything you need to know about using the Runtime framework in your application including how to create objects, setup bindings, add observers, defer execution of code, work with sets, index sets and more.

 

Who Should Read This Guide

 

You should read this guide first if you are planning to work with any of the other frameworks in the SproutCore application stack.  This includes building desktop apps, mobile apps, or using SproutCore mini on regular web pages.

 

Outline

 

  1. Overview
  2. Objects and Classes
  3. Copying, Freezing, and Comparing
  4. Key Value Coding (KVC)
  5. Key Value Observing (KVO)
  6. Bindings
  7. Enumerables, Arrays, and Sets
    1. Using SC.Enumerable
      1. What are enumerables?
    2. Using SC.Array
      1. Why another array interface?
      2. using Sc.Array with regular arrays
      3. Creating your own SC.Array
    3. Sets
      1. SC.Set
      2. SC.IndexSet
      3. SC.SelectionSet
    4. SparseArrays
      1. What is a sparse array?
      2. When to use sparse arrays
      3. Implementing a sparse array delegate
    5. Reducers
      1. what is a reducer
      2. Using a built-in reducer
      3. Writing your own reducer
  8. Run Loops
    1. The joy of deferred execution
    2. invokeLater()
    3. invokeOnce()
    4. Timers (A Preview)
  9. Errors
    1. About SC.Error
    2. Creating SC.Error objects
    3. Building your own SC.Error object
  10. Logging
    1. About the Logger class
    2. Logging to the console
    3. Capturing Log output
  11. Odds and Ends
    1. mixin(), copy(), merge() and beget()
    2. Guids and Hashes
    3. Evaluating Property Paths
    4. Checking Types
    5. Comparing Objects
    6. Checking Equality
    7. Testing for empty() or none()

Comments (0)

You don't have permission to comment on this page.