This file contains 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
# Add initial buildfile information here | |
config :all, :required => [:sproutcore, :'sproutcore/animation', :'sproutcore-ui'] | |
config :'sproutcore-ui', :required => [:sproutcore] |
This file contains 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
createChildViews : function() { | |
var childViews = [], view; | |
var given = this.getPath('content.given'); | |
this.inputView = view = this.createChildView(SC.LabelView, { | |
valueBinding: '*content.value', | |
isEditable: given ? NO : YES, | |
click: function(evt) { | |
return this.touchStart(evt); |
This file contains 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
render: function(context, firstTime) { | |
var hints = this.get('hints'); | |
console.log('render content %@'.fmt(hints)); | |
var hHeight = this.get('hintHeight'); | |
var hWidth = this.get('hintWidth'); | |
if (hints) { | |
hints.forEach(function(item, i) { | |
var top = 0; | |
var left = ((i % 3) + 1) * hWidth; |
This file contains 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
titleBinding: SC.Binding.from('App.thingController*content.bookmarks.length').transform(function(value){ | |
console.log('title binding xform %@'.fmt(value)); | |
return 'Go Back [%@]'.fmt(value); | |
}), |
This file contains 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
contextMenu: function(evt) { | |
console.log('contextmenu'); | |
evt.stopPropagation(); | |
return YES; | |
// return this.handleRightClick(evt); | |
// return this.handleRightClick(evt); | |
}, | |
mouseDown: function(evt) { | |
console.log('mousedown'); |
This file contains 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
popup: function() { | |
this.set('currentView', this.getPath('pane.contentView.input1')); | |
this.notifyPropertyChange('currentView'); | |
this._previousView = this.getPath('pane.contentView.input1'); | |
sc_super(); | |
}, |
This file contains 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
mharris@ildatch [~/dev/sproutcore/Thoth/tests] > node alltests.js | |
node.js:63 | |
throw e; | |
^ | |
Error: Cannot find module '/Users/mharris/dev/sproutcore/Thoth/tests/lib/core/SocketListener' | |
at loadModule (node.js:275:15) | |
at require (node.js:411:14) | |
at Object.<anonymous> (/Users/mharris/dev/sproutcore/Thoth/lib/Thoth.js:20:24) | |
at Module._compile (node.js:462:23) |
This file contains 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
var row = Titanium.UI.createView({ | |
height:'auto', | |
layout:'vertical', | |
top:2, | |
right:2, | |
bottom:2, | |
left: 2 | |
}); | |
This file contains 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
miles.ui.createEntryRows = function(entries) { | |
var rows = []; | |
Ti.API.info("Rendering rows: " + entries.length); | |
var count = 0; | |
for (var i = 0; i < entries.length; i) { | |
count++; | |
if (count > 10) { | |
Ti.API.error('emergency break'); | |
break; |
This file contains 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
E/System ( 53): Failure starting core service | |
E/System ( 53): java.lang.SecurityException | |
E/System ( 53): at android.os.BinderProxy.transact(Native Method) | |
E/System ( 53): at android.os.ServiceManagerProxy.addService(ServiceManagerNative.java:146) | |
E/System ( 53): at android.os.ServiceManager.addService(ServiceManager.java:72) | |
E/System ( 53): at com.android.server.ServerThread.run(SystemServer.java:176) |
OlderNewer