Skip to content

Commit 7db2504

Browse files
committed
Initial commit
0 parents  commit 7db2504

File tree

200 files changed

+7926
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

200 files changed

+7926
-0
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.DS_Store
2+
build/

.metadata/.lock

Whitespace-only changes.

.metadata/.log

+1,533
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"ios":{"selectedXcode":{"selected":true,"sdks":["8.1"],"supported":true,"path":"\/Applications\/Xcode.app\/Contents\/Developer","xcodeapp":"\/Applications\/Xcode.app","executables":{"libtool":"\/Applications\/Xcode.app\/Contents\/Developer\/Toolchains\/XcodeDefault.xctoolchain\/usr\/bin\/libtool","lipo":"\/Applications\/Xcode.app\/Contents\/Developer\/Toolchains\/XcodeDefault.xctoolchain\/usr\/bin\/lipo","otool":"\/Applications\/Xcode.app\/Contents\/Developer\/Toolchains\/XcodeDefault.xctoolchain\/usr\/bin\/otool","xcodebuild":"\/Applications\/Xcode.app\/Contents\/Developer\/usr\/bin\/xcodebuild","clang":"\/Applications\/Xcode.app\/Contents\/Developer\/Toolchains\/XcodeDefault.xctoolchain\/usr\/bin\/clang","clang_xx":"\/Applications\/Xcode.app\/Contents\/Developer\/Toolchains\/XcodeDefault.xctoolchain\/usr\/bin\/clang++"},"sims":["8.1"],"build":"6A2008a","version":"6.1.1"},"certs":{"wwdr":true,"keychains":{"\/Library\/Keychains\/System.keychain":{"developer":[],"distribution":[]},"\/Users\/adambalchunas\/Library\/Keychains\/login.keychain":{"developer":[],"distribution":[]}}},"xcode":{"6.1.1:6A2008a":{"selected":true,"sdks":["8.1"],"supported":true,"path":"\/Applications\/Xcode.app\/Contents\/Developer","xcodeapp":"\/Applications\/Xcode.app","executables":{"libtool":"\/Applications\/Xcode.app\/Contents\/Developer\/Toolchains\/XcodeDefault.xctoolchain\/usr\/bin\/libtool","lipo":"\/Applications\/Xcode.app\/Contents\/Developer\/Toolchains\/XcodeDefault.xctoolchain\/usr\/bin\/lipo","otool":"\/Applications\/Xcode.app\/Contents\/Developer\/Toolchains\/XcodeDefault.xctoolchain\/usr\/bin\/otool","xcodebuild":"\/Applications\/Xcode.app\/Contents\/Developer\/usr\/bin\/xcodebuild","clang":"\/Applications\/Xcode.app\/Contents\/Developer\/Toolchains\/XcodeDefault.xctoolchain\/usr\/bin\/clang","clang_xx":"\/Applications\/Xcode.app\/Contents\/Developer\/Toolchains\/XcodeDefault.xctoolchain\/usr\/bin\/clang++"},"sims":["8.1"],"build":"6A2008a","version":"6.1.1"}},"issues":[{"message":"Unable to find any valid iOS development provisioning profiles.\nThis will prevent you from building apps for testing on iOS devices.\nYou will need to login into __http:\/\/appcelerator.com\/ios-dev-certs__ with your Apple Download account, then create, download, and install a profile.","id":"IOS_NO_VALID_DEVELOPMENT_PROVISIONING_PROFILES","type":"warning"},{"message":"Unable to find any valid iOS adhoc provisioning profiles.\nThis will prevent you from packaging apps for adhoc distribution.\nYou will need to login into __http:\/\/appcelerator.com\/ios-dist-certs__ with your Apple Download account, then create, download, and install a profile.","id":"IOS_NO_VALID_ADHOC_PROVISIONING_PROFILES","type":"warning"},{"message":"Unable to find any valid iOS distribution provisioning profiles.\nThis will prevent you from packaging apps for AppStore distribution.\nYou will need to login into __http:\/\/appcelerator.com\/ios-dist-certs__ with your Apple Download account, then create, download, and install a profile.","id":"IOS_NO_VALID_DISTRIBUTION_PROVISIONING_PROFILES","type":"warning"},{"message":"Unable to find any valid iOS developer certificates.\nThis will prevent you from building apps for iOS devices.\nYou will need to login into __http:\/\/appcelerator.com\/ios-dev-certs__ with your Apple Download account, then create, download, and install a certificate.","id":"IOS_NO_VALID_DEV_CERTS_FOUND","type":"warning"},{"message":"Unable to find any valid iOS production distribution certificates.\nThis will prevent you from packaging apps for distribution.\nYou will need to login into __http:\/\/appcelerator.com\/ios-dist-certs__ with your Apple Download account, then create, download, and install a certificate.","id":"IOS_NO_VALID_DIST_CERTS_FOUND","type":"warning"}],"executables":{"ios-sim":"\/Users\/adambalchunas\/Library\/Application Support\/Titanium\/mobilesdk\/osx\/3.4.1.GA\/node_modules\/ioslib\/lib\/ios-sim","security":"\/usr\/bin\/security","xcodeSelect":"\/usr\/bin\/xcode-select"},"tisdk":"3.4.1.GA","crashDir":"\/Users\/adambalchunas\/Library\/Logs\/DiagnosticReports","devices":[{"name":"iTunes Sync","udid":"itunes"}],"detectVersion":"3.0","provisioning":{"profileDir":"\/Users\/adambalchunas\/Library\/MobileDevice\/Provisioning Profiles","development":[],"distribution":[],"adhoc":[]},"simulators":{"8.1":[{"app":"\/Applications\/Xcode.app\/Contents\/Developer\/Applications\/iOS Simulator.app","ios":"8.1","xcode":"6.1.1","systemLog":"\/Users\/adambalchunas\/Library\/Logs\/CoreSimulator\/0B13A8A6-E012-4438-9E83-F49C385673DE\/system.log","logFile":null,"udid":"0B13A8A6-E012-4438-9E83-F49C385673DE","type":"iphone","retina":true,"logPaths":["\/Users\/adambalchunas\/Library\/Developer\/CoreSimulator\/Devices\/0B13A8A6-E012-4438-9E83-F49C385673DE\/data\/Applications","\/Users\/adambalchunas\/Library\/Developer\/CoreSimulator\/Devices\/0B13A8A6-E012-4438-9E83-F49C385673DE\/data\/Containers\/Data\/Application"],"cmd":["\/Users\/adambalchunas\/Library\/Application Support\/Titanium\/mobilesdk\/osx\/3.4.1.GA\/node_modules\/ioslib\/lib\/ios-sim","launch","<app path>","--verbose","--xcode-dir","\/Applications\/Xcode.app\/Contents\/Developer","--udid","0B13A8A6-E012-4438-9E83-F49C385673DE"],"deviceType":"iPhone 4s","name":"iPhone 4s","resizable":false,"tall":false,"64bit":false},{"app":"\/Applications\/Xcode.app\/Contents\/Developer\/Applications\/iOS Simulator.app","ios":"8.1","xcode":"6.1.1","systemLog":"\/Users\/adambalchunas\/Library\/Logs\/CoreSimulator\/9974D534-883E-45E5-A72A-54A4D86AD626\/system.log","logFile":null,"udid":"9974D534-883E-45E5-A72A-54A4D86AD626","type":"iphone","retina":true,"logPaths":["\/Users\/adambalchunas\/Library\/Developer\/CoreSimulator\/Devices\/9974D534-883E-45E5-A72A-54A4D86AD626\/data\/Applications","\/Users\/adambalchunas\/Library\/Developer\/CoreSimulator\/Devices\/9974D534-883E-45E5-A72A-54A4D86AD626\/data\/Containers\/Data\/Application"],"cmd":["\/Users\/adambalchunas\/Library\/Application Support\/Titanium\/mobilesdk\/osx\/3.4.1.GA\/node_modules\/ioslib\/lib\/ios-sim","launch","<app path>","--verbose","--xcode-dir","\/Applications\/Xcode.app\/Contents\/Developer","--udid","9974D534-883E-45E5-A72A-54A4D86AD626"],"deviceType":"iPhone 5","name":"iPhone 5","resizable":false,"tall":true,"64bit":false},{"app":"\/Applications\/Xcode.app\/Contents\/Developer\/Applications\/iOS Simulator.app","ios":"8.1","xcode":"6.1.1","systemLog":"\/Users\/adambalchunas\/Library\/Logs\/CoreSimulator\/4B202C47-F106-4E33-A5B7-9041FCF41926\/system.log","logFile":null,"udid":"4B202C47-F106-4E33-A5B7-9041FCF41926","type":"iphone","retina":true,"logPaths":["\/Users\/adambalchunas\/Library\/Developer\/CoreSimulator\/Devices\/4B202C47-F106-4E33-A5B7-9041FCF41926\/data\/Applications","\/Users\/adambalchunas\/Library\/Developer\/CoreSimulator\/Devices\/4B202C47-F106-4E33-A5B7-9041FCF41926\/data\/Containers\/Data\/Application"],"cmd":["\/Users\/adambalchunas\/Library\/Application Support\/Titanium\/mobilesdk\/osx\/3.4.1.GA\/node_modules\/ioslib\/lib\/ios-sim","launch","<app path>","--verbose","--xcode-dir","\/Applications\/Xcode.app\/Contents\/Developer","--udid","4B202C47-F106-4E33-A5B7-9041FCF41926"],"deviceType":"iPhone 5s","name":"iPhone 5s","resizable":false,"tall":true,"64bit":true},{"app":"\/Applications\/Xcode.app\/Contents\/Developer\/Applications\/iOS Simulator.app","ios":"8.1","xcode":"6.1.1","systemLog":"\/Users\/adambalchunas\/Library\/Logs\/CoreSimulator\/F3A99C2D-B8D3-4F0E-8ECA-0297454CE31C\/system.log","logFile":null,"udid":"F3A99C2D-B8D3-4F0E-8ECA-0297454CE31C","type":"iphone","retina":true,"logPaths":["\/Users\/adambalchunas\/Library\/Developer\/CoreSimulator\/Devices\/F3A99C2D-B8D3-4F0E-8ECA-0297454CE31C\/data\/Applications","\/Users\/adambalchunas\/Library\/Developer\/CoreSimulator\/Devices\/F3A99C2D-B8D3-4F0E-8ECA-0297454CE31C\/data\/Containers\/Data\/Application"],"cmd":["\/Users\/adambalchunas\/Library\/Application Support\/Titanium\/mobilesdk\/osx\/3.4.1.GA\/node_modules\/ioslib\/lib\/ios-sim","launch","<app path>","--verbose","--xcode-dir","\/Applications\/Xcode.app\/Contents\/Developer","--udid","F3A99C2D-B8D3-4F0E-8ECA-0297454CE31C"],"deviceType":"iPhone 6 Plus","name":"iPhone 6 Plus","resizable":false,"tall":true,"64bit":true},{"app":"\/Applications\/Xcode.app\/Contents\/Developer\/Applications\/iOS Simulator.app","ios":"8.1","xcode":"6.1.1","systemLog":"\/Users\/adambalchunas\/Library\/Logs\/CoreSimulator\/AE768C28-B212-4064-8B43-0A9D65AAD6AB\/system.log","logFile":null,"udid":"AE768C28-B212-4064-8B43-0A9D65AAD6AB","type":"iphone","retina":true,"logPaths":["\/Users\/adambalchunas\/Library\/Developer\/CoreSimulator\/Devices\/AE768C28-B212-4064-8B43-0A9D65AAD6AB\/data\/Applications","\/Users\/adambalchunas\/Library\/Developer\/CoreSimulator\/Devices\/AE768C28-B212-4064-8B43-0A9D65AAD6AB\/data\/Containers\/Data\/Application"],"cmd":["\/Users\/adambalchunas\/Library\/Application Support\/Titanium\/mobilesdk\/osx\/3.4.1.GA\/node_modules\/ioslib\/lib\/ios-sim","launch","<app path>","--verbose","--xcode-dir","\/Applications\/Xcode.app\/Contents\/Developer","--udid","AE768C28-B212-4064-8B43-0A9D65AAD6AB"],"deviceType":"iPhone 6","name":"iPhone 6","resizable":false,"tall":true,"64bit":true},{"app":"\/Applications\/Xcode.app\/Contents\/Developer\/Applications\/iOS Simulator.app","ios":"8.1","xcode":"6.1.1","systemLog":"\/Users\/adambalchunas\/Library\/Logs\/CoreSimulator\/F07C9B04-BF72-4704-A678-B9558AC82437\/system.log","logFile":null,"udid":"F07C9B04-BF72-4704-A678-B9558AC82437","type":"ipad","retina":false,"logPaths":["\/Users\/adambalchunas\/Library\/Developer\/CoreSimulator\/Devices\/F07C9B04-BF72-4704-A678-B9558AC82437\/data\/Applications","\/Users\/adambalchunas\/Library\/Developer\/CoreSimulator\/Devices\/F07C9B04-BF72-4704-A678-B9558AC82437\/data\/Containers\/Data\/Application"],"cmd":["\/Users\/adambalchunas\/Library\/Application Support\/Titanium\/mobilesdk\/osx\/3.4.1.GA\/node_modules\/ioslib\/lib\/ios-sim","launch","<app path>","--verbose","--xcode-dir","\/Applications\/Xcode.app\/Contents\/Developer","--udid","F07C9B04-BF72-4704-A678-B9558AC82437"],"deviceType":"iPad 2","name":"iPad 2","resizable":false,"tall":false,"64bit":false},{"app":"\/Applications\/Xcode.app\/Contents\/Developer\/Applications\/iOS Simulator.app","ios":"8.1","xcode":"6.1.1","systemLog":"\/Users\/adambalchunas\/Library\/Logs\/CoreSimulator\/70DCB6F2-DE97-4591-985B-206FFFCAA2B6\/system.log","logFile":null,"udid":"70DCB6F2-DE97-4591-985B-206FFFCAA2B6","type":"ipad","retina":true,"logPaths":["\/Users\/adambalchunas\/Library\/Developer\/CoreSimulator\/Devices\/70DCB6F2-DE97-4591-985B-206FFFCAA2B6\/data\/Applications","\/Users\/adambalchunas\/Library\/Developer\/CoreSimulator\/Devices\/70DCB6F2-DE97-4591-985B-206FFFCAA2B6\/data\/Containers\/Data\/Application"],"cmd":["\/Users\/adambalchunas\/Library\/Application Support\/Titanium\/mobilesdk\/osx\/3.4.1.GA\/node_modules\/ioslib\/lib\/ios-sim","launch","<app path>","--verbose","--xcode-dir","\/Applications\/Xcode.app\/Contents\/Developer","--udid","70DCB6F2-DE97-4591-985B-206FFFCAA2B6"],"deviceType":"iPad Retina","name":"iPad Retina","resizable":false,"tall":false,"64bit":false},{"app":"\/Applications\/Xcode.app\/Contents\/Developer\/Applications\/iOS Simulator.app","ios":"8.1","xcode":"6.1.1","systemLog":"\/Users\/adambalchunas\/Library\/Logs\/CoreSimulator\/E41B0CAA-76C0-40A0-B2C1-0B26C5893FEB\/system.log","logFile":null,"udid":"E41B0CAA-76C0-40A0-B2C1-0B26C5893FEB","type":"ipad","retina":true,"logPaths":["\/Users\/adambalchunas\/Library\/Developer\/CoreSimulator\/Devices\/E41B0CAA-76C0-40A0-B2C1-0B26C5893FEB\/data\/Applications","\/Users\/adambalchunas\/Library\/Developer\/CoreSimulator\/Devices\/E41B0CAA-76C0-40A0-B2C1-0B26C5893FEB\/data\/Containers\/Data\/Application"],"cmd":["\/Users\/adambalchunas\/Library\/Application Support\/Titanium\/mobilesdk\/osx\/3.4.1.GA\/node_modules\/ioslib\/lib\/ios-sim","launch","<app path>","--verbose","--xcode-dir","\/Applications\/Xcode.app\/Contents\/Developer","--udid","E41B0CAA-76C0-40A0-B2C1-0B26C5893FEB"],"deviceType":"iPad Air","name":"iPad Air","resizable":false,"tall":false,"64bit":true},{"app":"\/Applications\/Xcode.app\/Contents\/Developer\/Applications\/iOS Simulator.app","ios":"8.1","xcode":"6.1.1","systemLog":"\/Users\/adambalchunas\/Library\/Logs\/CoreSimulator\/76CAD8D9-EF5C-4C1B-A972-181E7C009345\/system.log","logFile":null,"udid":"76CAD8D9-EF5C-4C1B-A972-181E7C009345","type":"iphone","retina":true,"logPaths":["\/Users\/adambalchunas\/Library\/Developer\/CoreSimulator\/Devices\/76CAD8D9-EF5C-4C1B-A972-181E7C009345\/data\/Applications","\/Users\/adambalchunas\/Library\/Developer\/CoreSimulator\/Devices\/76CAD8D9-EF5C-4C1B-A972-181E7C009345\/data\/Containers\/Data\/Application"],"cmd":["\/Users\/adambalchunas\/Library\/Application Support\/Titanium\/mobilesdk\/osx\/3.4.1.GA\/node_modules\/ioslib\/lib\/ios-sim","launch","<app path>","--verbose","--xcode-dir","\/Applications\/Xcode.app\/Contents\/Developer","--udid","76CAD8D9-EF5C-4C1B-A972-181E7C009345"],"deviceType":"Resizable iPhone","name":"Resizable iPhone","resizable":true,"tall":true,"64bit":true},{"app":"\/Applications\/Xcode.app\/Contents\/Developer\/Applications\/iOS Simulator.app","ios":"8.1","xcode":"6.1.1","systemLog":"\/Users\/adambalchunas\/Library\/Logs\/CoreSimulator\/0A8E8996-9B28-4F5B-8598-31B3902A394D\/system.log","logFile":null,"udid":"0A8E8996-9B28-4F5B-8598-31B3902A394D","type":"ipad","retina":true,"logPaths":["\/Users\/adambalchunas\/Library\/Developer\/CoreSimulator\/Devices\/0A8E8996-9B28-4F5B-8598-31B3902A394D\/data\/Applications","\/Users\/adambalchunas\/Library\/Developer\/CoreSimulator\/Devices\/0A8E8996-9B28-4F5B-8598-31B3902A394D\/data\/Containers\/Data\/Application"],"cmd":["\/Users\/adambalchunas\/Library\/Application Support\/Titanium\/mobilesdk\/osx\/3.4.1.GA\/node_modules\/ioslib\/lib\/ios-sim","launch","<app path>","--verbose","--xcode-dir","\/Applications\/Xcode.app\/Contents\/Developer","--udid","0A8E8996-9B28-4F5B-8598-31B3902A394D"],"deviceType":"Resizable iPad","name":"Resizable iPad","resizable":true,"tall":false,"64bit":true}]}}}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
Logger started at: Saturday, December 27, 2014 11:41:11 AM EST
2+
Component: com.appcelerator.titanium.ios.core
3+
Version: 1.0.0.1411756658
4+
[41:11.21] Sent: >21*1419698471022*version<
5+
[41:11.22] Recv: >1419698471022*2*3.4.1<
6+
[41:11.24] Sent: >45*1419698471023*option*stepFiltersEnabled*false<
7+
[41:11.24] Recv: >1419698471023<
8+
[41:11.24] Sent: >36*1419698471024*option*monitorXHR*true<
9+
[41:11.24] Recv: >1419698471024<
10+
[41:11.25] Sent: >45*1419698471025*option*suspendOnFirstLine*false<
11+
[41:11.25] Recv: >1419698471025<
12+
[41:11.25] Sent: >46*1419698471026*option*suspendOnExceptions*false<
13+
[41:11.25] Recv: >1419698471026<
14+
[41:11.26] Sent: >41*1419698471027*option*suspendOnErrors*true<
15+
[41:11.26] Recv: >1419698471027<
16+
[41:11.26] Sent: >43*1419698471028*option*suspendOnKeywords*true<
17+
[41:11.26] Recv: >1419698471028<
18+
[41:11.26] Sent: >45*1419698471029*option*bypassConstructors*false<
19+
[41:11.27] Recv: >1419698471029<
20+
[41:11.27] Sent: >45*1419698471030*option*stepFiltersEnabled*false<
21+
[41:11.27] Recv: >1419698471030<
22+
[41:11.27] Sent: >30*1419698471031*detailFormatters<
23+
[41:11.28] Recv: >1419698471031<
24+
[41:11.28] Sent: >20*1419698471032*enable<
25+
[41:11.28] Recv: >1419698471032<
26+
[41:11.31] Recv: >threads*created*0*kroll$1<
27+
[41:11.38] Recv: >log*out*[DEBUG] Loading: /Users/adambalchunas/Library/Developer/CoreSimulator/Devices/F07C9B04-BF72-4704-A678-B9558AC82437/data/Containers/Bundle/Application/64635617-95E7-4893-9964-F60E734AD3C2/flemming-test.app/app.js, Resource: app_js<
28+
[41:11.38] Recv: >scripts*created*298207936|app:/app.js||1|10<
29+
[41:11.38] Recv: >resumed*0*started<
30+
[41:11.38] Recv: >log*out*[DEBUG] Loading: /Users/adambalchunas/Library/Developer/CoreSimulator/Devices/F07C9B04-BF72-4704-A678-B9558AC82437/data/Containers/Bundle/Application/64635617-95E7-4893-9964-F60E734AD3C2/flemming-test.app/view/textgrid.js, Resource: view/textgrid_js<
31+
[41:11.41] Recv: >scripts*created*298207840|app:/view/textgrid.js||1|25<
32+
[41:11.41] Recv: >log*out*[DEBUG] Loading: /Users/adambalchunas/Library/Developer/CoreSimulator/Devices/F07C9B04-BF72-4704-A678-B9558AC82437/data/Containers/Bundle/Application/64635617-95E7-4893-9964-F60E734AD3C2/flemming-test.app/view/textgridtest.js, Resource: view/textgridtest_js<
33+
[41:11.42] Recv: >scripts*created*298207584|app:/view/textgridtest.js||1|57<
34+
[41:11.114] Recv: >log*out*[DEBUG] Loading: /Users/adambalchunas/Library/Developer/CoreSimulator/Devices/F07C9B04-BF72-4704-A678-B9558AC82437/data/Containers/Bundle/Application/64635617-95E7-4893-9964-F60E734AD3C2/flemming-test.app/_app_props_.json, Resource: _app_props__json<
35+
[41:11.115] Recv: >log*out*[DEBUG] Application booted in 171.619952 ms<
36+
[41:11.124] Recv: >log*out*[INFO] post layout<
37+
[41:11.128] Recv: >log*out*[INFO] post layout<
38+
[41:11.165] Recv: >log*out*[INFO] post layout<
39+
[41:11.173] Recv: >log*out*[INFO] post layout<
40+
[41:11.173] Recv: >log*out*[INFO] post layout<
41+
----------End of file----------
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<connections/>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<section name="Workbench">
3+
</section>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<section name="Workbench">
3+
<section name="BasicNewProjectResourceWizard">
4+
<item value="3.4.1.GA" key="titaniumSDK"/>
5+
</section>
6+
</section>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<connection>
3+
<connection>
4+
<name>Default</name>
5+
<source>file:/Users/adambalchunas</source>
6+
</connection>
7+
</connection>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<sites/>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<servers/>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
var TextGridTest = function TextGridTest() {
2+
};
3+
4+
var copy = ['lorem', 'ipsum', 'dolar', 'sit'],
5+
x = 0,
6+
y = 0,
7+
height = Ti.Platform.displayCaps.platformHeight,
8+
width = Ti.Platform.displayCaps.platformWidth;
9+
10+
TextGridTest.prototype.create = function() {
11+
12+
function getTextField(left, top) {
13+
var rand = Math.floor(Math.random() * (3 - 0)) + 0;
14+
var text = copy[rand];
15+
16+
return Ti.UI.createTextField({
17+
color: '#000',
18+
top: top,
19+
left: left,
20+
value: text,
21+
});
22+
}
23+
24+
function addTextField() {
25+
console.log('add text field');
26+
var tf = getTextField(x, y);
27+
28+
tf.addEventListener('postlayout', function() {
29+
console.log('post layout');
30+
31+
if (x + tf.width > width) {
32+
x = 0;
33+
y = y + tf.height;
34+
window.add(tf);
35+
addTextField();
36+
}
37+
else if (y + tf.height > height) {
38+
// Do nothing
39+
}
40+
else {
41+
window.add(tf);
42+
x = x + tf.width;
43+
addTextField();
44+
}
45+
});
46+
}
47+
48+
var window = Titanium.UI.createWindow({
49+
title: 'Test',
50+
backgroundColor: '#fff'
51+
});
52+
53+
window.open();
54+
55+
addTextField();
56+
};
57+
58+
module.exports = TextGridTest;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// this sets the background color of the master UIView (when there are no windows/tab groups on it)
2+
Titanium.UI.setBackgroundColor('#000');
3+
4+
var TextGrid = function TextGrid() {
5+
alert('Created Text Grid');
6+
};
7+
8+
TextGrid.prototype.initialize = function() {
9+
var window = Titanium.UI.createWindow({
10+
title: 'Test',
11+
backgroundColor: '#fff'
12+
});
13+
14+
var label1 = Titanium.UI.createLabel({
15+
color:'#999',
16+
text:'I am Window 1',
17+
font:{fontSize:20,fontFamily:'Helvetica Neue'},
18+
textAlign:'center',
19+
width:'auto'
20+
});
21+
22+
window.add(label1);
23+
};
24+
25+
module.exports = TextGrid;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<html>
2+
<head>
3+
<title>Test</title>
4+
</head>
5+
<body>
6+
<script src="../webview"></script>
7+
</body>
8+
</html>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<html>
2+
<head>
3+
<title>Test WebView</title>
4+
</head>
5+
<body style="background-color: #fff000">
6+
<span>This is just a test.</span>
7+
<script src="test.js"></script>
8+
</body>
9+
</html>

0 commit comments

Comments
 (0)