Skip to content
This repository has been archived by the owner on Sep 13, 2018. It is now read-only.

Commit

Permalink
0.9.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Whinnery authored and Kevin Whinnery committed Mar 2, 2010
1 parent 4d0db58 commit c1b4e6e
Show file tree
Hide file tree
Showing 83 changed files with 1,423 additions and 788 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
00000000000000000000000000000000 bf42edf14ac09498d8d8299573812a1a ffffffffffffffffffffffffffffffff 102 /Users/kevin/dev/appc/KitchenSink/0.8.1/KitchenSink/build/iphone/build/Debug-iphonesimulator/KitchenSink.app.dSYM
cc6674307765687ca8a8b81ae3d81ac7 76574ee79af2f65357d103a087bd45f0 ffffffffffffffffffffffffffffffff 2108 /Users/kevin/dev/appc/KitchenSink/0.8.1/KitchenSink/build/iphone/build/Debug-iphonesimulator/KitchenSink.app
000000004b1ea49000000000000000e1 7854f5932fa98b8cbecfdb82ab3a5057 ffffffffffffffffffffffffffffffff 62 /Users/kevin/dev/appc/KitchenSink/0.8.1/KitchenSink/build/iphone/build/Debug-iphonesimulator/KitchenSink.app/Entitlements.plist
000000004b6c3dab0000000000000558 09b5d0b754f025624fe4cb48f2342ec0 ffffffffffffffffffffffffffffffff 1368 /Users/kevin/dev/appc/KitchenSink/0.8.1/KitchenSink/build/iphone/build/Debug-iphonesimulator/KitchenSink.app/tiapp.plist
0986aa2e3539b006e1f15c708e11cad5 76574ee79af2f65357d103a087bd45f0 ffffffffffffffffffffffffffffffff 2074 /Users/kevin/dev/appc/KitchenSink/0.8.1/KitchenSink/build/iphone/build/Debug-iphonesimulator/KitchenSink.app
000000004b88071e00000000000000e1 7854f5932fa98b8cbecfdb82ab3a5057 ffffffffffffffffffffffffffffffff 62 /Users/kevin/dev/appc/KitchenSink/0.8.1/KitchenSink/build/iphone/build/Debug-iphonesimulator/KitchenSink.app/Entitlements.plist
000000004b8826340000000000000558 09b5d0b754f025624fe4cb48f2342ec0 ffffffffffffffffffffffffffffffff 1368 /Users/kevin/dev/appc/KitchenSink/0.8.1/KitchenSink/build/iphone/build/Debug-iphonesimulator/KitchenSink.app/tiapp.plist
00000000000000000000000000000000 ada6ccf417995cea57eabc0d6027e333 ffffffffffffffffffffffffffffffff 136257 /Users/kevin/dev/appc/KitchenSink/0.8.1/KitchenSink/build/iphone/build/Debug-iphonesimulator/KitchenSink.app/Default.png
000000004b6c3dab00000000000059ad 96a600240dc6f127be89b0b498ec3ccc ffffffffffffffffffffffffffffffff 2097 /Users/kevin/dev/appc/KitchenSink/0.8.1/KitchenSink/build/iphone/build/Debug-iphonesimulator/KitchenSink.app/MainWindow.nib
00000000000000000000000000000000 39c262a4887878c576529151c3fe602e ffffffffffffffffffffffffffffffff 8 /Users/kevin/dev/appc/KitchenSink/0.8.1/KitchenSink/build/iphone/build/Debug-iphonesimulator/KitchenSink.app/PkgInfo
00000000000000000000000000000000 39c262a4887878c576529151c3fe602e ffffffffffffffffffffffffffffffff 655 /Users/kevin/dev/appc/KitchenSink/0.8.1/KitchenSink/build/iphone/build/Debug-iphonesimulator/KitchenSink.app/Info.plist
e8fa9db2f834d628508e2cb129b30f11 6e7d0076a54919e7e06e88d86baee8aa ffffffffffffffffffffffffffffffff 1675524 /Users/kevin/dev/appc/KitchenSink/0.8.1/KitchenSink/build/iphone/build/Debug-iphonesimulator/KitchenSink.app/KitchenSink
364220b5e2d7a7c9646c0bc5dda83007 1cf56b2a958bda46ba26a12a0d6309e5 ffffffffffffffffffffffffffffffff 741996 /Users/kevin/dev/appc/KitchenSink/0.8.1/KitchenSink/build/iphone/build/KitchenSink.build/Debug-iphonesimulator/KitchenSink.build/Objects-normal/i386/ApplicationRouting.o
364220b5e306747d646c0bc5dda261db f40ff6986040a078eaa88d9b25091d8e ffffffffffffffffffffffffffffffff 9896 /Users/kevin/dev/appc/KitchenSink/0.8.1/KitchenSink/build/iphone/build/KitchenSink.build/Debug-iphonesimulator/KitchenSink.build/Objects-normal/i386/main.o
000000004b88263400000000000059ad da9c0243f2afb9a726be252298012709 ffffffffffffffffffffffffffffffff 2113 /Users/kevin/dev/appc/KitchenSink/0.8.1/KitchenSink/build/iphone/build/Debug-iphonesimulator/KitchenSink.app/MainWindow.nib
00000000000000000000000000000000 3240a516574819c440b13fd85315f4bf ffffffffffffffffffffffffffffffff 8 /Users/kevin/dev/appc/KitchenSink/0.8.1/KitchenSink/build/iphone/build/Debug-iphonesimulator/KitchenSink.app/PkgInfo
00000000000000000000000000000000 3240a516574819c440b13fd85315f4bf ffffffffffffffffffffffffffffffff 628 /Users/kevin/dev/appc/KitchenSink/0.8.1/KitchenSink/build/iphone/build/Debug-iphonesimulator/KitchenSink.app/Info.plist
b65da62099ad8d0f5bccefdbd264fc6c b900e79d797371b43a423a4efd5dd000 ffffffffffffffffffffffffffffffff 1675512 /Users/kevin/dev/appc/KitchenSink/0.8.1/KitchenSink/build/iphone/build/Debug-iphonesimulator/KitchenSink.app/KitchenSink
fb761bb119ffda1fb452df92c017bb54 eaa75beca277b5394dc8dd8d89ade0b5 ffffffffffffffffffffffffffffffff 742004 /Users/kevin/dev/appc/KitchenSink/0.8.1/KitchenSink/build/iphone/build/KitchenSink.build/Debug-iphonesimulator/KitchenSink.build/Objects-normal/i386/ApplicationRouting.o
fb761bb1195c9d49b452df92c01dea88 5cfafdcc36c52186160432565a10a493 ffffffffffffffffffffffffffffffff 9904 /Users/kevin/dev/appc/KitchenSink/0.8.1/KitchenSink/build/iphone/build/KitchenSink.build/Debug-iphonesimulator/KitchenSink.build/Objects-normal/i386/main.o
000000004b882bd2000000000000145b fb761bb15277f1cdb452df92c01dfab5 ffffffffffffffffffffffffffffffff 13022672 /var/folders/dD/dDdB6Le1EsKsPKy+xlRvpU+++TU/-Caches-/com.apple.Xcode.504/SharedPrecompiledHeaders/KitchenSink_Prefix-flbfxmjuomhvqhcjqnyvhdgfcuvb/KitchenSink_Prefix.pch.gch
000000004b1e83b2000000000000145b 364220b5a9c9247b646c0bc5dda271e6 ffffffffffffffffffffffffffffffff 13018576 /var/folders/dD/dDdB6Le1EsKsPKy+xlRvpU+++TU/-Caches-/com.apple.Xcode.504/SharedPrecompiledHeaders/KitchenSink_Prefix-dspuoibtlmkbwogyiaialkxqixzg/KitchenSink_Prefix.pch.gch
000000004b1e83b2000000000000145b 0866ae3265618130e6b1342c2bdcc121 ffffffffffffffffffffffffffffffff 13018576 /var/folders/dD/dDdB6Le1EsKsPKy+xlRvpU+++TU/-Caches-/com.apple.Xcode.504/SharedPrecompiledHeaders/KitchenSink_Prefix-ecqfxpbtgsehypetfuzffkzdsxyy/KitchenSink_Prefix.pch.gch
000000004b1e77780000000000001aa3 89fc50bb6db207a56f917475dc31385c ffffffffffffffffffffffffffffffff 13702992 /var/folders/dD/dDdB6Le1EsKsPKy+xlRvpU+++TU/-Caches-/com.apple.Xcode.504/SharedPrecompiledHeaders/KitchenSink_Prefix-apbsrrgixhllbwazjuwzgafbdzpt/KitchenSink_Prefix.pch.gch
Expand Down
Binary file not shown.
Binary file not shown.

Large diffs are not rendered by default.

Binary file added 0.9.x/KitchenSink/Resources/android/Default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 8 additions & 1 deletion 0.9.x/KitchenSink/Resources/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,12 @@ tabGroup.addTab(tab1);
tabGroup.addTab(tab2);
tabGroup.addTab(tab3);
tabGroup.addTab(tab4);
tabGroup.addTab(tab5);

// add iphone specific tests
if (Titanium.Platform.name == 'iPhone OS')
{
tabGroup.addTab(tab5);
}

tabGroup.addEventListener('open',function()
{
Expand Down Expand Up @@ -285,3 +290,5 @@ Ti.include("welcome.js");
// test out logging to developer console
Ti.API.info("Welcome to Kitchen Sink for Titanium/"+Titanium.version);
Ti.API.debug("user agent set to "+Titanium.userAgent);


1 change: 1 addition & 0 deletions 0.9.x/KitchenSink/Resources/examples/activity_indicator.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ if (Titanium.Platform.name == 'iPhone OS')
else
{
actInd.show();
actInd.message = 'Loading...'
setTimeout(function()
{
actInd.hide();
Expand Down
6 changes: 3 additions & 3 deletions 0.9.x/KitchenSink/Resources/examples/alert.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,16 @@ win.add(button2);
// ALERT WITH 4 BUTTONS
//
var button3 = Titanium.UI.createButton({
title:'Alert 4 Buttons',
title:'Alert 3 Buttons',
height:40,
width:200,
top:110
});

button3.addEventListener('click', function()
{
a.message = 'Four Buttons';
a.buttonNames = ['One', 'Two','Three','Four'];
a.message = 'Three Buttons';
a.buttonNames = ['One', 'Two','Three'];
a.cancel = 1;
a.show();
});
Expand Down
32 changes: 32 additions & 0 deletions 0.9.x/KitchenSink/Resources/examples/app_events.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
var win = Titanium.UI.currentWindow;


var label = Ti.UI.createLabel({
text:'No app event received. Make call while running app',
textAlign:'center',
width:'auto'
});

win.add(label);

var paused = false;

Titanium.App.addEventListener('pause',function(e)
{
paused = true;
label.text = "App has been paused";
});

Titanium.App.addEventListener('resume',function(e)
{
if (paused)
{
label.text = "App has resumed";
}
else
{
label.text = "App has resumed (w/o pause)";
}
});


18 changes: 11 additions & 7 deletions 0.9.x/KitchenSink/Resources/examples/button.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ var b1 = Titanium.UI.createButton({
top:10
});

win.add(b1);

var b2 = Titanium.UI.createButton({
title:'I am a Button',
Expand All @@ -17,8 +16,6 @@ var b2 = Titanium.UI.createButton({
top:60
});

win.add(b2);


var b3 = Titanium.UI.createButton({
color:'#fff',
Expand All @@ -32,7 +29,6 @@ var b3 = Titanium.UI.createButton({
title:'Click Me'
});

win.add(b3);

var state = 0;
b3.addEventListener('click', function()
Expand Down Expand Up @@ -75,14 +71,12 @@ b3.addEventListener('click', function()
});

var b4 = Titanium.UI.createButton({
title:'Hide/Show Button 3',
title:'Hide/Show Button Above',
width:200,
height:40,
top:175
});

win.add(b4);

var visible = true;
b4.addEventListener('click', function()
{
Expand All @@ -98,3 +92,13 @@ b4.addEventListener('click', function()
}
});

win.add(b1);
win.add(b3);
win.add(b4);

// add iphone specific tests
if (Titanium.Platform.name == 'iPhone OS')
{
win.add(b2);
}

8 changes: 8 additions & 0 deletions 0.9.x/KitchenSink/Resources/examples/email_dialog.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
var win = Ti.UI.currentWindow;

// initialize to all modes
win.orientationModes = [
Titanium.UI.PORTRAIT,
Titanium.UI.LANDSCAPE_LEFT,
Titanium.UI.LANDSCAPE_RIGHT,
];
Titanium.Media.openPhotoGallery({
success: function(event)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ b1.addEventListener('click', function()
}
loggedIn.text = "Logged In = " + Ti.Facebook.loggedIn;
userId.text = "User Id = " + Ti.Facebook.userId;
Ti.API.info('permissions = ' + Ti.Facebook.permissions);
for (v in Ti.Facebook.permissions)
{
permissions.text += v + ' value = ' + Ti.Facebook.permissions[v] + '\n';
Expand Down
2 changes: 1 addition & 1 deletion 0.9.x/KitchenSink/Resources/examples/facebook_query.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function runQuery()
});

var imageView = Ti.UI.createImageView({
url:row.pic_square == null ? 'images/custom_tableview/user.png' : row.pic_square,
url:row.pic_square == null ? '../images/custom_tableview/user.png' : row.pic_square,
left:10,
width:50,
height:50
Expand Down
121 changes: 121 additions & 0 deletions 0.9.x/KitchenSink/Resources/examples/foursquare.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
var win = Titanium.UI.currentWindow;


var username = Ti.UI.createTextField({
autocapitalization:Titanium.UI.TEXT_AUTOCAPITALIZATION_NONE,
width:300,
top:10,
height:35,
borderStyle:Titanium.UI.INPUT_BORDERSTYLE_ROUNDED,
hintText:'Foursquare Username'
});
win.add(username);

var password = Ti.UI.createTextField({
autocapitalization:Titanium.UI.TEXT_AUTOCAPITALIZATION_NONE,
width:300,
top:55,
height:35,
borderStyle:Titanium.UI.INPUT_BORDERSTYLE_ROUNDED,
passwordMask:true,
hintText:'Foursquare Password'
});
win.add(password);

var button = Titanium.UI.createButton({
title:'Get Venues Nearby',
top:100,
width:300,
height:40
});
win.add(button);

var navActInd = Titanium.UI.createActivityIndicator();
win.setRightNavButton(navActInd);

button.addEventListener('click', function()
{
label.text = "Determining your location...";
navActInd.show();
password.blur();
Ti.API.info("starting geo");
Titanium.Geolocation.getCurrentPosition(function(e)
{
Ti.API.info("received geo response");
if (e.error)
{
alert(e.error);
return;
}

var longitude = e.coords.longitude;
var latitude = e.coords.latitude;

label.text = "You are at: "+longitude+"\n"+latitude+"\n\nFinding venues...";

var xhr = Titanium.Network.createHTTPClient();
xhr.onerror = function(e)
{
Ti.API.info("ERROR " + e.error);
navActInd.hide();
alert(e.error);
}
xhr.onload = function()
{
label.hide();
// Ti.API.info("foursquare response was "+this.responseText);

var resp = eval('('+this.responseText+')');
var venues = resp.groups[0].venues;
for (var i=0;i<venues.length;i++)
{
status.text += venues[i].name+'\n\n';

}
scrollView.add(status);

navActInd.hide();
};
// open the client and encode our URL
xhr.open('GET','http://api.foursquare.com/v1/venues.json?geolat='+latitude+'&geolong='+longitude);
// base64 encode our Authorization header
xhr.setRequestHeader('Authorization','Basic '+Ti.Utils.base64encode(username.value+':'+password.value));

// send the data
xhr.send();
Ti.API.info("sending foursquare API request for "+latitude+","+longitude);
});
});
var scrollView = Titanium.UI.createScrollView({
top:150,
contentHeight:'auto',
contentWidth:'auto',
backgroundColor:'#13386c',
width:300,
height:200,
borderRadius:10
});
win.add(scrollView);

var label = Titanium.UI.createLabel({
text:'Please login',
font:{fontSize:18},
color:'white',
width:250,
height:'auto',
textAlign:'center'
});
scrollView.add(label);

var status = Titanium.UI.createLabel({
font:{fontSize:18},
color:'white',
width:250,
height:'auto',
top:20,
text:'',
textAlign:'center'
});



2 changes: 1 addition & 1 deletion 0.9.x/KitchenSink/Resources/examples/geolocation.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
var win = Titanium.UI.currentWindow;
var JSON = Titanium.JSON;
win.backgroundColor = '#fff';

var currentHeadingLabel = Titanium.UI.createLabel({
Expand Down Expand Up @@ -189,6 +188,7 @@ if (Titanium.Geolocation.locationServicesEnabled==false)
}
else
{

//
// IF WE HAVE COMPASS GET THE HEADING
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ win.add(start);

// reverse animation
var reverse = Titanium.UI.createButton({
title:'Reverse Animation',
title:'Reverse',
height:30,
width:120,
font:{fontSize:13, fontFamily:'Helvetica Neue'},
Expand Down
5 changes: 3 additions & 2 deletions 0.9.x/KitchenSink/Resources/examples/image_view_basic.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ var l = Titanium.UI.createLabel({
text:'Click Image',
bottom:30,
color:'#999',
height:20,
height:'auto',
width:300,
textAlign:'center'
});
Expand All @@ -22,7 +22,8 @@ win.add(l);
function clicker()
{
Titanium.UI.createAlertDialog({title:'Image View', message:'You clicked me!'}).show();
l.text = "Try again. You shouldn't get alert";
l.text = "Try again. You shouldn't get alert and the image should be different";
imageView.url = '../images/Kicking00.png';
imageView.removeEventListener('click',clicker);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,18 @@ var win = Ti.UI.currentWindow;
var view = Ti.UI.createImageView({
url:'http://www.appcelerator.com/wp-content/uploads/2009/06/titanium_desk.png',
top:10,
left:10
left:10,
height:'auto',
width:'auto'
});

win.add(view);

var label = Ti.UI.createLabel({
text:'Image should be at top 10 and left 10',
height:'auto',
bottom:20
bottom:20,
textAlign:'center'
});

win.add(label);
7 changes: 5 additions & 2 deletions 0.9.x/KitchenSink/Resources/examples/image_view_scaling.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ var l = Titanium.UI.createLabel({
});
win.add(l);

var blob = imageView.toBlob();
l.text = blob.width + "x" + blob.height;
setTimeout(function() {
// wait for URL to load
var blob = imageView.toBlob();
l.text = blob.width + "x" + blob.height;
}, 2000);


Loading

0 comments on commit c1b4e6e

Please sign in to comment.