Skip to content

Instantly share code, notes, and snippets.

# Add initial buildfile information here
config :all, :required => [:sproutcore, :'sproutcore/animation', :'sproutcore-ui']
config :'sproutcore-ui', :required => [:sproutcore]
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);
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;
titleBinding: SC.Binding.from('App.thingController*content.bookmarks.length').transform(function(value){
console.log('title binding xform %@'.fmt(value));
return 'Go Back [%@]'.fmt(value);
}),
contextMenu: function(evt) {
console.log('contextmenu');
evt.stopPropagation();
return YES;
// return this.handleRightClick(evt);
// return this.handleRightClick(evt);
},
mouseDown: function(evt) {
console.log('mousedown');
popup: function() {
this.set('currentView', this.getPath('pane.contentView.input1'));
this.notifyPropertyChange('currentView');
this._previousView = this.getPath('pane.contentView.input1');
sc_super();
},
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)
var row = Titanium.UI.createView({
height:'auto',
layout:'vertical',
top:2,
right:2,
bottom:2,
left: 2
});
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;
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)