Home Page Icon
Home Page
Table of Contents for
Table of Contents
Close
Table of Contents
by Tyler Keating
SproutCore Web Application Development
SproutCore Web Application Development
Table of Contents
SproutCore Web Application Development
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers and more
Why Subscribe?
Free Access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Introducing SproutCore
Understanding the SproutCore approach
Knowing when SproutCore is the right choice
Building your first SproutCore application
Installing SproutCore
Installing Ruby
Installing the SproutCore gem
Creating a project
Adding an app to the project
Designing your user interface
Modeling your data
Connecting it all together
Working with user input
Summary
2. The Runtime Environment
Building on SproutCore's object model
Using mixins to share functionality
Working with properties and computed properties
Observing properties for instant updates
Binding properties for error-free consistency
Working with enumerables
SC.Array
SC.Set
Observing enumerables
Observing properties on enumerable items
Understanding the run loop
Summary
3. The View Layer
MVC in SproutCore
Understanding the View layer
Becoming familiar with SC.View and SC.Pane
Organizing panes using SC.Page
Laying out views
Adjusting the layout
Animating the layout
Styling views
Rendering custom views
Updating custom views
Responding to user events in custom views
Summary
4. The Model Layer
Understanding the Model and Data Interface layers
Introducing the data store
Defining your data model
Creating custom attribute properties
Defining record relationships
Following the life cycle of SC.Record
Loaded records (READY_CLEAN)
Unloaded records (EMPTY)
To be read records (BUSY_LOADING and BUSY_REFRESH)
To be created records (READY_NEW)
To be updated records (READY_DIRTY)
To be destroyed records (DESTROYED_DIRTY)
Querying the store
Synchronizing data with a remote data source
Implementing remote data source adaptors
Reading records
Creating, updating, and destroying records
Summary
5. The Controller Layer
Understanding the Controller and Application State layers
Working with SproutCore's controllers
SC.ArrayController
SC.TreeController
Designing with statecharts
Avoiding pitfalls with statecharts
Coding with statecharts
Summary
6. Testing, Building, and Deploying
Unit testing SproutCore apps
Viewing unit test results
Using frameworks and modules
Building and deploying apps
Additional configuration options
Summary
Index
Search in book...
Toggle Font Controls
Playlists
Add To
Create new playlist
Name your new playlist
Playlist description (optional)
Cancel
Create playlist
Sign In
Email address
Password
Forgot Password?
Create account
Login
or
Continue with Facebook
Continue with Google
Sign Up
Full Name
Email address
Confirm Email Address
Password
Login
Create account
or
Continue with Facebook
Continue with Google
Prev
Previous Chapter
Cover
Next
Next Chapter
SproutCore Web Application Development
Table of Contents
SproutCore Web Application Development
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers and more
Why Subscribe?
Free Access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Introducing SproutCore
Understanding the SproutCore approach
Knowing when SproutCore is the right choice
Building your first SproutCore application
Installing SproutCore
Installing Ruby
Installing the SproutCore gem
Creating a project
Adding an app to the project
Designing your user interface
Modeling your data
Connecting it all together
Working with user input
Summary
2. The Runtime Environment
Building on SproutCore's object model
Using mixins to share functionality
Working with properties and computed properties
Observing properties for instant updates
Binding properties for error-free consistency
Working with enumerables
SC.Array
SC.Set
Observing enumerables
Observing properties on enumerable items
Understanding the run loop
Summary
3. The View Layer
MVC in SproutCore
Understanding the View layer
Becoming familiar with SC.View and SC.Pane
Organizing panes using SC.Page
Laying out views
Adjusting the layout
Animating the layout
Styling views
Rendering custom views
Updating custom views
Responding to user events in custom views
Summary
4. The Model Layer
Understanding the Model and Data Interface layers
Introducing the data store
Defining your data model
Creating custom attribute properties
Defining record relationships
Following the life cycle of SC.Record
Loaded records (READY_CLEAN)
Unloaded records (EMPTY)
To be read records (BUSY_LOADING and BUSY_REFRESH)
To be created records (READY_NEW)
To be updated records (READY_DIRTY)
To be destroyed records (DESTROYED_DIRTY)
Querying the store
Synchronizing data with a remote data source
Implementing remote data source adaptors
Reading records
Creating, updating, and destroying records
Summary
5. The Controller Layer
Understanding the Controller and Application State layers
Working with SproutCore's controllers
SC.ArrayController
SC.TreeController
Designing with statecharts
Avoiding pitfalls with statecharts
Coding with statecharts
Summary
6. Testing, Building, and Deploying
Unit testing SproutCore apps
Viewing unit test results
Using frameworks and modules
Building and deploying apps
Additional configuration options
Summary
Index
Add Highlight
No Comment
..................Content has been hidden....................
You can't read the all page of ebook, please click
here
login for view all page.
Day Mode
Cloud Mode
Night Mode
Reset