<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>demos/KitchenSink/Resources/appcelerator_small.png</filename>
    </added>
    <added>
      <filename>demos/KitchenSink/Resources/apple_logo.jpg</filename>
    </added>
    <added>
      <filename>demos/KitchenSink/Resources/atlanta.jpg</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -33,11 +33,23 @@ if os.path.exists('android/titanium/bin'):
 # hard to include python after an external SConscript
 #
 
-build_dirs = ['android/titanium']
-if platform.system() == &quot;Darwin&quot;:
+build_dirs = []
+
+if not ARGUMENTS.get('iphone',0):
+	build_dirs.append('android/titanium')
+
+if platform.system() == &quot;Darwin&quot; and not ARGUMENTS.get('android',0):
 	build_dirs.append('iphone')
 
 flags = ''
+build_type = 'full'
+
+
+if ARGUMENTS.get('iphone',0):
+	build_type='iphone'
+
+if ARGUMENTS.get('android',0):
+	build_type='android'
 
 if ARGUMENTS.get('COMPILER_FLAGS', 0):
 	flags = ARGUMENTS.get('COMPILER_FLAGS')
@@ -46,7 +58,7 @@ for dir in build_dirs:
 	d = os.getcwd()
 	os.chdir(dir)
 	try:
-		os.system(&quot;scons PRODUCT_VERSION=%s COMPILER_FLAGS='%s'&quot; % (version,flags))	
+		os.system(&quot;scons PRODUCT_VERSION=%s COMPILER_FLAGS='%s' BUILD_TYPE='%s'&quot; % (version,flags,build_type))	
 	finally:
 		os.chdir(d)
 </diff>
      <filename>SConstruct</filename>
    </modified>
    <modified>
      <diff>@@ -13,33 +13,50 @@
 				{
 					latitude:37.337681, 
 					longitude:-122.038193,
-					title:&quot;Appcelerator's cool&quot;,
-					subtitle:'Mountain View',
+					title:&quot;Appcelerator Headquarters&quot;,
+					subtitle:'Mountain View, CA',
 					pincolor:Titanium.Map.ANNOTATION_PURPLE,
-					animate:true
+					animate:true,
+					leftButton: 'appcelerator_small.png'
 				},
 				{
 					latitude:37.33168900, 
 					longitude:-122.03073100,
 					title:&quot;Apple, Inc.&quot;,
-					subtitle:'Cupertino',
+					subtitle:'Cupertino, CA',
 					pincolor:Titanium.Map.ANNOTATION_BLUE,
-					animate:true
+					animate:true,
+					rightButton: 'apple_logo.jpg'
 				},
 				{
 					latitude:33.74511, 
 					longitude:-84.38993,
-					title:&quot;Atlanta&quot;,
-					subtitle:'Georgia',
+					title:&quot;Atlanta, GA&quot;,
+					subtitle:'Atlanta Braves Stadium',
 					pincolor:Titanium.Map.ANNOTATION_RED,
-					animate:true
+					animate:true,
+					leftButton:'atlanta.jpg',
+					rightButton:Titanium.UI.iPhone.SystemButton.DISCLOSURE
 				}
 			]
 		});
 		
 		mapview.addEventListener('click',function(evt)
 		{
-			Ti.API.info('you clicked on '+evt.title);
+			Ti.API.info('you clicked on '+evt.title+' with click source = '+evt.source);
+
+			if (evt.title == 'Atlanta, GA' &amp;&amp; evt.source == 'rightButton')
+			{
+				var w = Titanium.UI.createWindow({
+					url:'credits.html'
+				});
+				w.open({animated:true});
+			}
+		});
+		
+		mapview.addEventListener('regionChanged',function(evt)
+		{
+			Ti.API.info('maps region has updated to '+evt.longitude+','+evt.latitude);
 		});
 		
 		Titanium.UI.currentWindow.addView(mapview);</diff>
      <filename>demos/KitchenSink/Resources/maps.html</filename>
    </modified>
    <modified>
      <diff>@@ -214,4 +214,33 @@ typedef enum {
 
 extern BOOL TitaniumPrepareAnimationsForView(NSDictionary * optionObject, UIView * view);
 
+int barButtonSystemItemForString(NSString * inputString);
+
+enum {
+	UITitaniumNativeStyleBar = -32,
+	UITitaniumNativeStyleBig = -33,
+	UITitaniumNativeStyleDark = -34,
+};
+
+enum { //MUST BE NEGATIVE, as it inhabits the same space as UIBarButtonSystemItem
+	UITitaniumNativeItemNone = -1, //Also is a bog-standard button.
+	UITitaniumNativeItemSpinner = -2,
+	UITitaniumNativeItemProgressBar = -3,
+	
+	UITitaniumNativeItemSlider = -4,
+	UITitaniumNativeItemSwitch = -5,
+	UITitaniumNativeItemMultiButton = -6,
+	UITitaniumNativeItemSegmented = -7,
+	
+	UITitaniumNativeItemTextView = -8,
+	UITitaniumNativeItemTextField = -9,
+	UITitaniumNativeItemSearchBar = -10,
+	
+	UITitaniumNativeItemPicker = -11,
+	UITitaniumNativeItemDatePicker = -12,
+	
+	UITitaniumNativeItemInfoLight = -13,
+	UITitaniumNativeItemInfoDark = -14,
+};
+
 @end</diff>
      <filename>iphone/Classes/TitaniumHost.h</filename>
    </modified>
    <modified>
      <diff>@@ -34,6 +34,54 @@ NSString * CleanJSEnd(NSString * inputString)
 }
 
 
+NSDictionary * barButtonSystemItemForStringDict = nil;
+
+int barButtonSystemItemForString(NSString * inputString){
+	if (barButtonSystemItemForStringDict == nil) {
+		barButtonSystemItemForStringDict = [[NSDictionary alloc] initWithObjectsAndKeys:
+				[NSNumber numberWithInt:UIBarButtonSystemItemAction],@&quot;action&quot;,
+				[NSNumber numberWithInt:UIBarButtonSystemItemBookmarks],@&quot;bookmarks&quot;,
+				[NSNumber numberWithInt:UIBarButtonSystemItemCamera],@&quot;camera&quot;,
+				[NSNumber numberWithInt:UIBarButtonSystemItemCompose],@&quot;compose&quot;,
+				[NSNumber numberWithInt:UIBarButtonSystemItemDone],@&quot;done&quot;,
+				[NSNumber numberWithInt:UIBarButtonSystemItemCancel],@&quot;cancel&quot;,
+				[NSNumber numberWithInt:UIBarButtonSystemItemEdit],@&quot;edit&quot;,
+				[NSNumber numberWithInt:UIBarButtonSystemItemSave],@&quot;save&quot;,
+				[NSNumber numberWithInt:UIBarButtonSystemItemAdd],@&quot;add&quot;,
+				[NSNumber numberWithInt:UIBarButtonSystemItemFlexibleSpace],@&quot;flexiblespace&quot;,
+				[NSNumber numberWithInt:UIBarButtonSystemItemFixedSpace],@&quot;fixedspace&quot;,
+				[NSNumber numberWithInt:UIBarButtonSystemItemReply],@&quot;reply&quot;,
+				[NSNumber numberWithInt:UIBarButtonSystemItemOrganize],@&quot;organize&quot;,
+				[NSNumber numberWithInt:UIBarButtonSystemItemSearch],@&quot;search&quot;,
+				[NSNumber numberWithInt:UIBarButtonSystemItemRefresh],@&quot;refresh&quot;,
+				[NSNumber numberWithInt:UIBarButtonSystemItemStop],@&quot;stop&quot;,
+				[NSNumber numberWithInt:UIBarButtonSystemItemTrash],@&quot;trash&quot;,
+				[NSNumber numberWithInt:UIBarButtonSystemItemPlay],@&quot;play&quot;,
+				[NSNumber numberWithInt:UIBarButtonSystemItemPause],@&quot;pause&quot;,
+				[NSNumber numberWithInt:UIBarButtonSystemItemRewind],@&quot;rewind&quot;,
+				[NSNumber numberWithInt:UIBarButtonSystemItemFastForward],@&quot;fastforward&quot;,
+				[NSNumber numberWithInt:UITitaniumNativeItemSpinner],@&quot;activity&quot;,
+				[NSNumber numberWithInt:UITitaniumNativeItemSlider],@&quot;slider&quot;,
+				[NSNumber numberWithInt:UITitaniumNativeItemSwitch],@&quot;switch&quot;,
+				[NSNumber numberWithInt:UITitaniumNativeItemPicker],@&quot;picker&quot;,
+				[NSNumber numberWithInt:UITitaniumNativeItemDatePicker],@&quot;datepicker&quot;,
+				[NSNumber numberWithInt:UITitaniumNativeItemTextField],@&quot;text&quot;,
+				[NSNumber numberWithInt:UITitaniumNativeItemTextView],@&quot;textarea&quot;,
+				[NSNumber numberWithInt:UITitaniumNativeItemSearchBar],@&quot;search&quot;,
+				[NSNumber numberWithInt:UITitaniumNativeItemMultiButton],@&quot;multibutton&quot;,
+				[NSNumber numberWithInt:UITitaniumNativeItemSegmented],@&quot;segmented&quot;,
+				[NSNumber numberWithInt:UITitaniumNativeItemInfoLight],@&quot;infolight&quot;,
+				[NSNumber numberWithInt:UITitaniumNativeItemInfoDark],@&quot;infodark&quot;,
+				[NSNumber numberWithInt:UITitaniumNativeItemProgressBar],@&quot;progressbar&quot;,
+				[NSNumber numberWithInt:UIButtonTypeDetailDisclosure],@&quot;disclosure&quot;,
+				nil];
+	}
+	NSNumber * result = [barButtonSystemItemForStringDict objectForKey:[inputString lowercaseString]];
+	if (result != nil) return [result intValue];
+	return UITitaniumNativeItemNone;
+}
+
+
 
 NSString * const TitaniumTabChangeNotification = @&quot;tabChange&quot;;
 NSString * const TitaniumJsonKey = @&quot;json&quot;;</diff>
      <filename>iphone/Classes/TitaniumHost.m</filename>
    </modified>
    <modified>
      <diff>@@ -16,7 +16,7 @@ modules = [	'api',
 		'filesystem',
 		'network',
 		'platform',
-      'analytics',
+      		'analytics',
 		'gesture',
 		'notification',
 		'facebook',
@@ -52,6 +52,7 @@ sys.path.append(iphone_dir)
 
 import run,prereq
 
+quick_build = ARGUMENTS.get('BUILD_TYPE',0) == 'iphone'
 
 def build(name):
     # execute the phone and simulator release builds
@@ -66,17 +67,22 @@ def build(name):
     # build the merged library using lipo
     os.system(&quot;lipo build/%s-iphonesimulator/lib%s.a build/%s-iphoneos/lib%s.a -create -output build/lib%s-%s.a&quot; %(config,name,config,name,name,apiversion))
 
-
-for apiversion in prereq.get_sdks():
-    # execute the phone and simulator release builds
-
+def forversion():
     build('Titanium')
-
     # build each of the modules
     for module in modules:
-        module_name = module[0:1].capitalize()+module[1:]
-        if len(module)==2:
-            module_name = module.upper()
-        build(module_name)
+    	module_name = module[0:1].capitalize()+module[1:]
+      	if len(module)==2:
+        	module_name = module.upper()
+      	build(module_name)
+
+
+if quick_build:
+	apiversion = '3.0'
+	forversion()
+else:
+	for apiversion in prereq.get_sdks():
+		forversion()
+
 	
     </diff>
      <filename>iphone/SConstruct</filename>
    </modified>
    <modified>
      <diff>@@ -15,6 +15,8 @@
 	BOOL animate;
 	MKPinAnnotationColor pincolor;
 	CLLocationCoordinate2D coordinate;
+	NSString *leftButton;
+	NSString *rightButton;
 }
 -(id)init:(CLLocationCoordinate2D)coord;
 @property (nonatomic, readonly) CLLocationCoordinate2D coordinate;
@@ -22,11 +24,14 @@
 @property (nonatomic) MKPinAnnotationColor pincolor;
 @property (nonatomic,retain) NSString* title;
 @property (nonatomic,retain) NSString* subtitle;
+@property (nonatomic,retain) NSString* leftButton;
+@property (nonatomic,retain) NSString* rightButton;
 @end
 
 @implementation MapViewAnnotation
 
 @synthesize animate,pincolor,coordinate,title,subtitle;
+@synthesize leftButton,rightButton;
 
 -(id)init:(CLLocationCoordinate2D)coord
 {
@@ -40,6 +45,8 @@
 {
 	[title release];
 	[subtitle release];
+	[leftButton release];
+	[rightButton release];
 	[super dealloc];
 }
 @end
@@ -84,7 +91,6 @@
 
 -(void)setMapType:(NSNumber*)type
 {
-	//view.mapType = MKMapTypeStandard;
 	view.mapType = [type unsignedIntegerValue];
 }
 
@@ -165,6 +171,8 @@
 		userLocation = [ul boolValue];
 	}
 	
+	TitaniumHost *tiHost = [TitaniumHost sharedHost];
+	
 	id ant = [dict objectForKey:@&quot;annotations&quot;];
 	if ([ant isKindOfClass:[NSArray class]])
 	{
@@ -177,22 +185,31 @@
 			l.latitude = [[value objectForKey:@&quot;latitude&quot;] doubleValue];
 			l.longitude = [[value objectForKey:@&quot;longitude&quot;] doubleValue];
 			MapViewAnnotation * loc = [[MapViewAnnotation alloc] init:l];
-			loc.title = [value objectForKey:@&quot;title&quot;];
-			loc.subtitle = [value objectForKey:@&quot;subtitle&quot;];
 			loc.pincolor = [[value objectForKey:@&quot;pincolor&quot;] unsignedIntegerValue];
 			loc.animate = [[value objectForKey:@&quot;animate&quot;] boolValue];
+			loc.title = [value objectForKey:@&quot;title&quot;];
+			loc.subtitle = [value objectForKey:@&quot;subtitle&quot;];
+			id li = [value objectForKey:@&quot;leftButton&quot;];
+			if (li)
+			{
+				loc.leftButton=(NSString*)li;
+			}
+			id ri = [value objectForKey:@&quot;rightButton&quot;];
+			if (ri)
+			{
+				loc.rightButton=(NSString*)ri;
+			}
 			[annotations addObject:loc];
 			[loc release];
 		}
 	}
 	
-	MapModule * mod = (MapModule *) [[TitaniumHost sharedHost] moduleNamed:@&quot;MapModule&quot;];
+	MapModule * mod = (MapModule *) [tiHost moduleNamed:@&quot;MapModule&quot;];
 	token = [(NSString*)[dict objectForKey:@&quot;_TOKEN&quot;] retain];
 	[mod registerView:self forToken:token];
 	
 	pageToken = [[[TitaniumHost sharedHost] currentThread] magicToken];
 	region.center = coord;
-	
 	region.span = span;
 }
 
@@ -218,6 +235,9 @@
 		view.mapType = mapType;
 		view.showsUserLocation=YES;
 		view.delegate = self;
+		view.userInteractionEnabled = YES;
+		
+		
 		[view setAutoresizingMask:UIViewAutoresizingFlexibleWidth|UIViewAutoresizingFlexibleHeight];
 		
 		if (annotations &amp;&amp; [annotations count]&gt;0)
@@ -248,41 +268,153 @@
                        context:(void *)context
 {
 	NSString *action = (NSString*)context;
+	
+//	NSLog(@&quot;[INFO] object key value = %@ for %@&quot;,keyPath,object);
+	
 	if([action isEqualToString:@&quot;ANSELECTED&quot;])
 	{
-		BOOL flag = [[change valueForKey:@&quot;new&quot;] boolValue];
+		//BOOL flag = [[change valueForKey:@&quot;new&quot;] boolValue];
 		if ([object isKindOfClass:[MKPinAnnotationView class]])
 		{
 			MKPinAnnotationView *pinview = (MKPinAnnotationView*)object;
 			NSString *title = [[pinview reuseIdentifier] stringByReplacingOccurrencesOfString:@&quot;'&quot; withString:@&quot;\\'&quot;];
 			TitaniumHost * theHost = [TitaniumHost sharedHost];
 			NSString * pathString = [self javaScriptPath];
-			NSString * commandString = [NSString stringWithFormat:@&quot;%@.onClick('click',{type:'click',title:'%@','new':%d});&quot;,pathString,title,flag];	
+			NSString * commandString = [NSString stringWithFormat:@&quot;%@.onEvent('click',{source:'annotation',type:'click',title:'%@'});&quot;,pathString,title];	
 			[theHost sendJavascript:commandString toPagesWithTokens:listeningWebContextTokens update:YES];
 			
 		}
 	}
 }
 
+- (void)mapView:(MKMapView *)mapView annotationView:(MKAnnotationView *)aview calloutAccessoryControlTapped:(UIControl *)control
+{
+	if ([control isKindOfClass:[UIButton class]])
+	{
+		if (aview.leftCalloutAccessoryView == control)
+		{
+			NSString *title = [[aview reuseIdentifier] stringByReplacingOccurrencesOfString:@&quot;'&quot; withString:@&quot;\\'&quot;];
+			TitaniumHost * theHost = [TitaniumHost sharedHost];
+			NSString * pathString = [self javaScriptPath];
+			NSString * commandString = [NSString stringWithFormat:@&quot;%@.onEvent('click',{source:'leftButton',type:'click',title:'%@'});&quot;,pathString,title];	
+			[theHost sendJavascript:commandString toPagesWithTokens:listeningWebContextTokens update:YES];
+		}
+		else if (aview.rightCalloutAccessoryView == control)
+		{
+			NSString *title = [[aview reuseIdentifier] stringByReplacingOccurrencesOfString:@&quot;'&quot; withString:@&quot;\\'&quot;];
+			TitaniumHost * theHost = [TitaniumHost sharedHost];
+			NSString * pathString = [self javaScriptPath];
+			NSString * commandString = [NSString stringWithFormat:@&quot;%@.onEvent('click',{source:'rightButton',type:'click',title:'%@'});&quot;,pathString,title];	
+			[theHost sendJavascript:commandString toPagesWithTokens:listeningWebContextTokens update:YES];
+		}
+		else
+		{
+			NSLog(@&quot;[INFO] clicked on center button&quot;);
+		}
+	}
+}
+
+-(UIButton*)makeButton:(NSString*)url
+{
+	int type = barButtonSystemItemForString(url);
+	if (type == UITitaniumNativeItemNone)
+	{
+		TitaniumHost * theHost = [TitaniumHost sharedHost];
+		UIImage *image = [theHost imageForResource:url];
+		CGSize size = [image size];
+		UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
+		button.frame = CGRectMake(0,0,size.width,size.height);
+		button.backgroundColor = [UIColor clearColor];
+		[button setImage:image forState:UIControlStateNormal];
+		[image autorelease];
+		return button;
+	}
+	return [UIButton buttonWithType:type];
+}
+
 - (MKAnnotationView *) mapView:(MKMapView *)mapView viewForAnnotation:(id &lt;MKAnnotation&gt;) annotation
 {
 	if ([annotation isKindOfClass:[MapViewAnnotation class]])
 	{
 		MapViewAnnotation *ann = (MapViewAnnotation*)annotation;
-		MKPinAnnotationView *annView=[[MKPinAnnotationView alloc] initWithAnnotation:ann reuseIdentifier:[ann title]];
-		annView.pinColor = [ann pincolor];
-		annView.animatesDrop = [ann animate];
-		annView.canShowCallout = YES;
-		annView.calloutOffset = CGPointMake(-5, 5);
-		[annView addObserver:self
-				  forKeyPath:@&quot;selected&quot;
-					 options:NSKeyValueObservingOptionNew
-					 context:@&quot;ANSELECTED&quot;];
+		MKPinAnnotationView *annView =(MKPinAnnotationView*) [mapView dequeueReusableAnnotationViewWithIdentifier:[ann title]];
+		if (annView==nil)
+		{
+			annView=[[MKPinAnnotationView alloc] initWithAnnotation:ann reuseIdentifier:[ann title]];
+			annView.pinColor = [ann pincolor];
+			annView.animatesDrop = [ann animate];
+			annView.canShowCallout = YES;
+			annView.calloutOffset = CGPointMake(-5, 5);
+			annView.enabled = YES;
+			if (ann.leftButton)
+			{
+				annView.leftCalloutAccessoryView = [self makeButton:ann.leftButton];
+			}
+			if (ann.rightButton)
+			{
+				annView.rightCalloutAccessoryView = [self makeButton:ann.rightButton];
+			}
+			annView.userInteractionEnabled = YES;
+			[annView addObserver:self
+					  forKeyPath:@&quot;selected&quot;
+						 options:NSKeyValueObservingOptionNew
+						 context:@&quot;ANSELECTED&quot;];
+		}				
+
 		return annView;
 	}
 	return nil;
 }
 
+/*
+- (void)mapView:(MKMapView *)mapView didAddAnnotationViews:(NSArray *)views
+{
+	NSLog(@&quot;[INFO] MapKit annotation view added&quot;);
+}*/
+
+- (void)mapView:(MKMapView *)mapView regionDidChangeAnimated:(BOOL)animated
+{
+	TitaniumHost * theHost = [TitaniumHost sharedHost];
+	NSString * pathString = [self javaScriptPath];
+	MKCoordinateRegion aregion = [mapView region];
+	NSDictionary * props = [NSDictionary dictionaryWithObjectsAndKeys:
+							@&quot;regionChanged&quot;,@&quot;type&quot;,
+							[NSNumber numberWithDouble:aregion.center.latitude],@&quot;latitude&quot;,
+							[NSNumber numberWithDouble:aregion.center.longitude],@&quot;longitude&quot;,
+							[NSNumber numberWithDouble:aregion.span.latitudeDelta],@&quot;latitudeDelta&quot;,
+							[NSNumber numberWithDouble:aregion.span.longitudeDelta],@&quot;longitudeDelta&quot;,nil];
+
+	SBJSON *json = [[[SBJSON alloc] init] autorelease];
+	NSString * commandString = [NSString stringWithFormat:@&quot;%@.onEvent('regionChanged',%@);&quot;,pathString,[json stringWithObject:props error:nil]];	
+	[theHost sendJavascript:commandString toPagesWithTokens:listeningWebContextTokens update:YES];
+}
+
+/*
+- (void)mapViewWillStartLoadingMap:(MKMapView *)mapView
+{
+	NSLog(@&quot;[INFO] MapKit load map started&quot;);
+}*/
+
+- (void)mapViewDidFailLoadingMap:(MKMapView *)mapView withError:(NSError *)error
+{
+	NSLog(@&quot;[ERROR] MapKit load map failed = %@&quot;,[error description]);
+	TitaniumHost * theHost = [TitaniumHost sharedHost];
+	NSString * pathString = [self javaScriptPath];
+	NSDictionary * props = [NSDictionary dictionaryWithObjectsAndKeys:
+							@&quot;error&quot;,@&quot;type&quot;,
+							[error description],@&quot;message&quot;,nil];
+	
+	SBJSON *json = [[[SBJSON alloc] init] autorelease];
+	NSString * commandString = [NSString stringWithFormat:@&quot;%@.onEvent('error',%@);&quot;,pathString,[json stringWithObject:props error:nil]];	
+	[theHost sendJavascript:commandString toPagesWithTokens:listeningWebContextTokens update:YES];
+}
+
+/*
+- (void)mapViewDidFinishLoadingMap:(MKMapView *)mapView
+{
+	NSLog(@&quot;[INFO] MapKit load map finished&quot;);
+}*/
+
 - (void)reverseGeocoder:(MKReverseGeocoder *)geocoder didFailWithError:(NSError *)error{
 }
 
@@ -356,9 +488,13 @@
 	}
 }
 
+-(void)addAnnotation:(NSDictionary*)dict
+{
+}
+
 -(void) configure
 {
-	NSString * createViewString = @&quot;function(args){var res=Ti.UI.createView(args);res._TYPE='map'; if(!Ti.Map._VIEWS){Ti.Map._VIEWS={};} Ti.Map._VIEWS[res._TOKEN]=res; res.onClick=Ti._ONEVT; res._EVT = {click:[]}; res.addEventListener=Ti._ADDEVT; res.removeEventListener = Ti._REMEVT; res.setLocation=function(obj){Ti.Map._SETLOC(obj,res._TOKEN);}; res.setMapType=function(type){Ti.Map._SETMAP(type,res._TOKEN);}; return res;}&quot;;
+	NSString * createViewString = @&quot;function(args){var res=Ti.UI.createView(args);res._TYPE='map'; if(!Ti.Map._VIEWS){Ti.Map._VIEWS={};} Ti.Map._VIEWS[res._TOKEN]=res; res.onEvent=Ti._ONEVT; res._EVT = {click:[]}; res.addEventListener=Ti._ADDEVT; res.removeEventListener = Ti._REMEVT; res.setLocation=function(obj){Ti.Map._SETLOC(obj,res._TOKEN);}; res.setMapType=function(type){Ti.Map._SETMAP(type,res._TOKEN);}; return res;}&quot;;
 	
 	[self registerContentViewController:[MapViewController class] forToken:@&quot;map&quot;];
 	[self bindProperty:@&quot;STANDARD_TYPE&quot; value:[NSNumber numberWithUnsignedInteger:MKMapTypeStandard]];</diff>
      <filename>iphone/modules/MapModule/MapModule.m</filename>
    </modified>
    <modified>
      <diff>@@ -12,32 +12,6 @@
 
 #define PICKER_SELECTROW	0
 
-enum {
-	UITitaniumNativeStyleBar = -32,
-	UITitaniumNativeStyleBig = -33,
-	UITitaniumNativeStyleDark = -34,
-};
-
-enum { //MUST BE NEGATIVE, as it inhabits the same space as UIBarButtonSystemItem
-	UITitaniumNativeItemNone = -1, //Also is a bog-standard button.
-	UITitaniumNativeItemSpinner = -2,
-	UITitaniumNativeItemProgressBar = -3,
-	
-	UITitaniumNativeItemSlider = -4,
-	UITitaniumNativeItemSwitch = -5,
-	UITitaniumNativeItemMultiButton = -6,
-	UITitaniumNativeItemSegmented = -7,
-	
-	UITitaniumNativeItemTextView = -8,
-	UITitaniumNativeItemTextField = -9,
-	UITitaniumNativeItemSearchBar = -10,
-	
-	UITitaniumNativeItemPicker = -11,
-	UITitaniumNativeItemDatePicker = -12,
-	
-	UITitaniumNativeItemInfoLight = -13,
-	UITitaniumNativeItemInfoDark = -14,
-};
 
 BOOL TitaniumPrepareAnimationsForView(NSDictionary * optionObject, UIView * view);
 </diff>
      <filename>iphone/modules/UiModule/NativeControlProxy.h</filename>
    </modified>
    <modified>
      <diff>@@ -33,51 +33,6 @@ BOOL TitaniumPrepareAnimationsForView(NSDictionary * optionObject, UIView * view
 	return YES;
 }
 
-NSDictionary * barButtonSystemItemForStringDict = nil;
-
-int barButtonSystemItemForString(NSString * inputString){
-	if (barButtonSystemItemForStringDict == nil) {
-		barButtonSystemItemForStringDict = [[NSDictionary alloc] initWithObjectsAndKeys:
-				[NSNumber numberWithInt:UIBarButtonSystemItemAction],@&quot;action&quot;,
-				[NSNumber numberWithInt:UIBarButtonSystemItemBookmarks],@&quot;bookmarks&quot;,
-				[NSNumber numberWithInt:UIBarButtonSystemItemCamera],@&quot;camera&quot;,
-				[NSNumber numberWithInt:UIBarButtonSystemItemCompose],@&quot;compose&quot;,
-				[NSNumber numberWithInt:UIBarButtonSystemItemDone],@&quot;done&quot;,
-				[NSNumber numberWithInt:UIBarButtonSystemItemCancel],@&quot;cancel&quot;,
-				[NSNumber numberWithInt:UIBarButtonSystemItemEdit],@&quot;edit&quot;,
-				[NSNumber numberWithInt:UIBarButtonSystemItemSave],@&quot;save&quot;,
-				[NSNumber numberWithInt:UIBarButtonSystemItemAdd],@&quot;add&quot;,
-				[NSNumber numberWithInt:UIBarButtonSystemItemFlexibleSpace],@&quot;flexiblespace&quot;,
-				[NSNumber numberWithInt:UIBarButtonSystemItemFixedSpace],@&quot;fixedspace&quot;,
-				[NSNumber numberWithInt:UIBarButtonSystemItemReply],@&quot;reply&quot;,
-				[NSNumber numberWithInt:UIBarButtonSystemItemOrganize],@&quot;organize&quot;,
-				[NSNumber numberWithInt:UIBarButtonSystemItemSearch],@&quot;search&quot;,
-				[NSNumber numberWithInt:UIBarButtonSystemItemRefresh],@&quot;refresh&quot;,
-				[NSNumber numberWithInt:UIBarButtonSystemItemStop],@&quot;stop&quot;,
-				[NSNumber numberWithInt:UIBarButtonSystemItemTrash],@&quot;trash&quot;,
-				[NSNumber numberWithInt:UIBarButtonSystemItemPlay],@&quot;play&quot;,
-				[NSNumber numberWithInt:UIBarButtonSystemItemPause],@&quot;pause&quot;,
-				[NSNumber numberWithInt:UIBarButtonSystemItemRewind],@&quot;rewind&quot;,
-				[NSNumber numberWithInt:UIBarButtonSystemItemFastForward],@&quot;fastforward&quot;,
-				[NSNumber numberWithInt:UITitaniumNativeItemSpinner],@&quot;activity&quot;,
-				[NSNumber numberWithInt:UITitaniumNativeItemSlider],@&quot;slider&quot;,
-				[NSNumber numberWithInt:UITitaniumNativeItemSwitch],@&quot;switch&quot;,
-				[NSNumber numberWithInt:UITitaniumNativeItemPicker],@&quot;picker&quot;,
-				[NSNumber numberWithInt:UITitaniumNativeItemDatePicker],@&quot;datepicker&quot;,
-				[NSNumber numberWithInt:UITitaniumNativeItemTextField],@&quot;text&quot;,
-				[NSNumber numberWithInt:UITitaniumNativeItemTextView],@&quot;textarea&quot;,
-				[NSNumber numberWithInt:UITitaniumNativeItemSearchBar],@&quot;search&quot;,
-				[NSNumber numberWithInt:UITitaniumNativeItemMultiButton],@&quot;multibutton&quot;,
-				[NSNumber numberWithInt:UITitaniumNativeItemSegmented],@&quot;segmented&quot;,
-				[NSNumber numberWithInt:UITitaniumNativeItemInfoLight],@&quot;infolight&quot;,
-				[NSNumber numberWithInt:UITitaniumNativeItemInfoDark],@&quot;infodark&quot;,
-				[NSNumber numberWithInt:UITitaniumNativeItemProgressBar],@&quot;progressbar&quot;,
-				nil];
-	}
-	NSNumber * result = [barButtonSystemItemForStringDict objectForKey:[inputString lowercaseString]];
-	if (result != nil) return [result intValue];
-	return UITitaniumNativeItemNone;
-}
 
 @interface PickerColumnWrapper : NSObject
 {
@@ -1221,7 +1176,7 @@ needsRefreshing = YES;	\
 NSString * const systemButtonString = @&quot;{ACTION:'action',ACTIVITY:'activity',CAMERA:'camera',COMPOSE:'compose',BOOKMARKS:'bookmarks',&quot;
 	&quot;SEARCH:'search',ADD:'add',TRASH:'trash',ORGANIZE:'organize',REPLY:'reply',STOP:'stop',REFRESH:'refresh',&quot;
 	&quot;PLAY:'play',FAST_FORWARD:'fastforward',PAUSE:'pause',REWIND:'rewind',EDIT:'edit',CANCEL:'cancel',&quot;
-	&quot;SAVE:'save',DONE:'done',FLEXIBLE_SPACE:'flexiblespace',FIXED_SPACE:'fixedspace',INFO_LIGHT:'infolight',INFO_DARK:'infodark'}&quot;;
+	&quot;SAVE:'save',DONE:'done',FLEXIBLE_SPACE:'flexiblespace',FIXED_SPACE:'fixedspace',INFO_LIGHT:'infolight',INFO_DARK:'infodark',DISCLOSURE:'disclosure'}&quot;;
 
 
 NSString * const createButtonString = @&quot;function(args,btnType){var res={&quot;</diff>
      <filename>iphone/modules/UiModule/NativeControlProxy.m</filename>
    </modified>
    <modified>
      <diff>@@ -48,7 +48,8 @@ def zip_it(dist_dir,osname,version):
 	 
 	 
 	 android_jar = os.path.join(cur_dir,'android','titanium','bin','titanium.jar')
-	 zf.write(android_jar,'%s/android/titanium.jar' % basepath)
+	 if os.path.exists(android_jar):
+	 	zf.write(android_jar,'%s/android/titanium.jar' % basepath)
 	 
 	 if osname == &quot;osx&quot;:
 		  sys.path.append(iphone_dir)</diff>
      <filename>package.py</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>98d0c64be52623ca998bda191e58621538b22e19</id>
    </parent>
  </parents>
  <author>
    <name>Jeff Haynie</name>
    <email>jhaynie@gmail.com</email>
  </author>
  <url>http://github.com/appcelerator/titanium_mobile/commit/443c9dcb2334a6024b2a6b6ee8ee0f64350645ba</url>
  <id>443c9dcb2334a6024b2a6b6ee8ee0f64350645ba</id>
  <committed-date>2009-10-24T17:05:41-07:00</committed-date>
  <authored-date>2009-10-24T17:05:41-07:00</authored-date>
  <message>- scons improvement to try and make it faster to build single library for testing
- move out constants from UI module that need to be used by other UI-type modules
- improve mapping to support left/right images, system buttons
- improve mapping by adding additional events that are captured like regionChanged
- improve mapping to support left/right/center click events
- added disclosure type system button</message>
  <tree>19443d48af8d0815d30fcdc19be585e489076077</tree>
  <committer>
    <name>Jeff Haynie</name>
    <email>jhaynie@gmail.com</email>
  </committer>
</commit>
