- Help -> Install New Software
- Add this: http://github.eclipsesource.com/jshint-eclipse/updates/
- Install JSHint. Studio will restart.
After successfull install, right click on your project:
- Properties:
{ | |
"bitwise": true, | |
"camelcase": true, | |
"eqeqeq": true, | |
"indent": 4, | |
"unused": true, | |
"onevar": true, | |
"undef": true, | |
"trailing": true, | |
"latedef": true, |
# This command will make sure the process persists | |
# even after you log out of a session | |
node server.js >/dev/null 2>&1 & |
function showgallery(){ | |
Titanium.Media.openPhotoGallery({ | |
success:function(event){ | |
var cropRect = event.cropRect; | |
var image = event.media; | |
Ti.API.debug('Our type was: '+event.mediaType); | |
if(event.mediaType == Ti.Media.MEDIA_TYPE_PHOTO){ | |
var uri = image.nativePath; | |
After successfull install, right click on your project:
{ | |
"bitwise": true, | |
"camelcase": true, | |
"eqeqeq": true, | |
"indent": 4, | |
"unused": true, | |
"onevar": true, | |
"undef": true, | |
"trailing": true, | |
"latedef": true, |
//from line 502 | |
-(void)setRightNavButton:(id)proxy withObject:(id)properties | |
{ | |
ENSURE_UI_THREAD_WITH_OBJ(setRightNavButton,proxy,properties); | |
if (properties == nil) { | |
properties = [self valueForKey:@"rightNavSettings"]; | |
} | |
else { | |
[self setValue:properties forKey:@"rightNavSettings"]; |
//Application Window Component Constructor | |
function ApplicationWindow() { | |
//load component dependencies | |
var FirstView = require('ui/common/FirstView'); | |
//create component instance | |
var self = Ti.UI.createWindow({ | |
backgroundColor : '#ffffff', | |
borderRadius : 6 | |
}); |
//.. | |
//AudioStreamer/AudioStreamerCUR.m | |
// | |
// failWithErrorCode: | |
// | |
// Sets the playback state to failed and logs the error. | |
// | |
// Parameters: | |
// anErrorCode - the error condition | |
// |
Titanium.App.addEventListener("playvideo", function (e) { | |
win11 = Titanium.UI.createWindow({ | |
orientationModes: [Ti.UI.LANDSCAPE_LEFT, Ti.UI.LANDSCAPE_RIGHT], | |
title: "Video", | |
zIndex: 222222 | |
}); | |
var activeMovie = Titanium.Media.createVideoPlayer({ | |
fullscreen: !0, | |
autoplay: !0, |