This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// SCBinding.h | |
// StateCode | |
// | |
// Created by Erich Ocean on 9/7/08. | |
// Copyright 2008 Erich Atlas Ocean. All rights reserved. | |
// | |
@interface SCBinding : NSObject | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// MainWindow.objc | |
// PhotoBooth | |
// | |
// Created by Erich Ocean on 9/8/08. | |
// Copyright 2008 Erich Atlas Ocean. All rights reserved. | |
// | |
sc_require( "PhotoBooth" ); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// SCView.h | |
// StateCode | |
// | |
// Created by Erich Ocean on 8/13/08. | |
// Copyright 2008 Erich Atlas Ocean. All rights reserved. | |
// | |
@interface SCView : NSResponder | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// SCWindow.h | |
// StateCode | |
// | |
// Created by Erich Ocean on 8/13/08. | |
// Copyright 2008 Erich Atlas Ocean. All rights reserved. | |
// | |
@class SCLayerView, SCView, SCPage; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }); | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// .......................................... | |
// 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 ; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
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 file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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) ; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% 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 %> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |