Skip to content

Instantly share code, notes, and snippets.

View erichocean's full-sized avatar

Erich Ocean erichocean

  • Xy Group Ltd
  • North Carolina
View GitHub Profile
//
// SCBinding.h
// StateCode
//
// Created by Erich Ocean on 9/7/08.
// Copyright 2008 Erich Atlas Ocean. All rights reserved.
//
@interface SCBinding : NSObject
{
//
// MainWindow.objc
// PhotoBooth
//
// Created by Erich Ocean on 9/8/08.
// Copyright 2008 Erich Atlas Ocean. All rights reserved.
//
sc_require( "PhotoBooth" );
//
// SCView.h
// StateCode
//
// Created by Erich Ocean on 8/13/08.
// Copyright 2008 Erich Atlas Ocean. All rights reserved.
//
@interface SCView : NSResponder
{
//
// SCWindow.h
// StateCode
//
// Created by Erich Ocean on 8/13/08.
// Copyright 2008 Erich Atlas Ocean. All rights reserved.
//
@class SCLayerView, SCView, SCPage;
isFlashVisible: NO,
_isFlashVisible: NO, // for animation
isFlashVisibleBinding: 'OI.flashController.firstMessage',
isFlashVisibleBindingDefault: SC.Binding.Bool,
isFlashVisibleObserver: function () {
if ( !this._wrapperAnimation ) {
this._wrapperAnimation = Animator.apply( SC.page.get('wrapper').rootElement, "top: 0px;", { duration: 200 });
}
// ..........................................
// REFRESH
refreshRecords: function(records) {
if (!records || records.length == 0) return ;
records = this._recordsByResource(records) ; // sort by resource.
for(var resource in records) {
if (resource == '*') continue ;
/**
Call this to force the list to refresh. The refresh may not happen
right away, depending on the dataSource.
*/
refresh: function() {
var recordType = this.get('recordType') || SC.Record ;
var offset = (this._limit > 0) ? this._offset : 0 ;
if (!this._boundRefreshFunc) {
this._boundRefreshFunc = this._refreshDidComplete.bind(this) ;
// This method is called by the various handlers once they have extracted
// their data.
refreshRecordsWithData: function(dataAry,recordType,cacheCode,loaded) {
var server = this ;
// first, prepare each data item in the Ary.
dataAry = dataAry.map(function(data) {
// camelize the keys received back.
data = server._camelizeData(data) ;
<% content_for('body') do %>
<%= tab_view :decider_tabs,
:lazy_tabs => true,
:height => 400,
:now_showing => :incomming,
:segments => [[:incomming,'Incomming Orders'],
[:complete,'Completed/Canceled Orders']] %>
<% end %>
troy:sproutcore-buildtools onitunes$ ./bin//sc-server
Loading SproutCore bundles in /Users/onitunes/tmp/sproutcore-buildtools
Running SproutCore Build Tools v0.9.17
Welcome to SproutCore
~ Starting Merb server listening at 0.0.0.0:4020
~ Using Mongrel adapter
~ Started request handling: Tue Sep 30 12:41:19 -0700 2008
~ uninitialized constant Merb::Request::Application - (NameError)
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:492:in `const_missing_before_generators'
/opt/local/lib/ruby/gems/1.8/gems/rubigen-1.3.2/lib/rubigen/lookup.rb:13:in `const_missing'