Skip to content

Instantly share code, notes, and snippets.

App.MyView = SC.View.extend(SC.ContentDisplay, {
displayProperties: ['p1'],
contentDisplayProperties: ['c1', 'c2'],
p1: null, // If you call this.set('p1', something), the view will rerender
// if content, or c1 or c2 on content change, the view rerenders
contentBinding: SC.Binding.oneWay('App.controller.content')
D/KrollEventManager( 1222): (main) [1,23051] Added for eventName 'click' with id 1
E/TiAnalyticsSvc( 1222): (Thread-10) [384,23435] Error posting events: Host is unresolved: api.appcelerator.net:443
E/TiAnalyticsSvc( 1222): java.net.UnknownHostException: Host is unresolved: api.appcelerator.net:443
E/TiAnalyticsSvc( 1222): at java.net.Socket.connect(Socket.java:1037)
E/TiAnalyticsSvc( 1222): at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:317)
E/TiAnalyticsSvc( 1222): at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:129)
E/TiAnalyticsSvc( 1222): at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164)
var row = Ti.UI.createTableViewRow({
height:'auto',
hasChild : true,
backgroundColor: 'black'
// backgroundGradient: {
// type: 'linear',
// colors: ['#000001','#666666'],
// backFillStart: false
// }
});
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)
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;
var row = Titanium.UI.createView({
height:'auto',
layout:'vertical',
top:2,
right:2,
bottom:2,
left: 2
});
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)
popup: function() {
this.set('currentView', this.getPath('pane.contentView.input1'));
this.notifyPropertyChange('currentView');
this._previousView = this.getPath('pane.contentView.input1');
sc_super();
},
contextMenu: function(evt) {
console.log('contextmenu');
evt.stopPropagation();
return YES;
// return this.handleRightClick(evt);
// return this.handleRightClick(evt);
},
mouseDown: function(evt) {
console.log('mousedown');
titleBinding: SC.Binding.from('App.thingController*content.bookmarks.length').transform(function(value){
console.log('title binding xform %@'.fmt(value));
return 'Go Back [%@]'.fmt(value);
}),