<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -16,6 +16,7 @@
   IBOutlet UIBarButtonItem *languageSwitcherButton;
   UISearchBar *mySearchBar;
   DetailViewController *detailViewController;
+  UIButton *cancelSearchTableCover;
   
   NSMutableArray *indexLetters;
   BOOL searching;</diff>
      <filename>Classes/MainViewController.h</filename>
    </modified>
    <modified>
      <diff>@@ -31,6 +31,7 @@
   NSLog(@&quot;dealloc&quot;);
   [mySearchBar release];
   [detailViewController release];
+  [cancelSearchTableCover release];
   [super dealloc];
 }
 
@@ -82,7 +83,6 @@
   [aboutViewController release];
 }
 
-
 #pragma mark TableView Datasource
 - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
   if(section == 0) {
@@ -152,8 +152,9 @@
       UISearchBar *aSearchBar = [[UISearchBar alloc] initWithFrame:CGRectZero];
       [aSearchBar setTintColor: [UIColor colorWithRed:0.769 green:0.80 blue:0.824 alpha:1.0]];
       [aSearchBar sizeToFit];
-//      aSearchBar.autocapitalizationType = UITextAutocapitalizationTypeNone;
+      aSearchBar.autocapitalizationType = UITextAutocapitalizationTypeNone;
       aSearchBar.delegate = self;
+      aSearchBar.placeholder = @&quot;Search&quot;;
 
       aSearchBar.frame = CGRectMake(0, 0, 290, 44);
       [cell.contentView addSubview:aSearchBar];
@@ -283,9 +284,22 @@
   [self.navigationItem setRightBarButtonItem: buttonItem animated:YES];
   [buttonItem release];
   
+  if (cancelSearchTableCover == nil) {
+    cancelSearchTableCover = [UIButton buttonWithType:UIButtonTypeCustom];
+    [cancelSearchTableCover addTarget:self action:@selector(cancelSearching) forControlEvents:UIControlEventTouchDown];
+    cancelSearchTableCover.backgroundColor = [UIColor blackColor];
+    cancelSearchTableCover.alpha = 0.0f;
+    cancelSearchTableCover.frame = CGRectMake(0, 44, 320, 320);
+    [tableView addSubview:cancelSearchTableCover];
+  }  
+  
+  
   // setup the animation
   [UIView beginAnimations:nil context:nil];
-  [UIView setAnimationDuration:0.2];  
+  [UIView setAnimationDuration:0.2];
+
+  // fade in and out the cancel search button
+  cancelSearchTableCover.alpha = (hide) ? 0.8f : 0.0f;
   
   mySearchBar.frame = CGRectMake(mySearchBar.frame.origin.x, 
                                  mySearchBar.frame.origin.y, </diff>
      <filename>Classes/MainViewController.m</filename>
    </modified>
    <modified>
      <diff>@@ -23,7 +23,7 @@
 	&lt;key&gt;CFBundleSignature&lt;/key&gt;
 	&lt;string&gt;????&lt;/string&gt;
 	&lt;key&gt;CFBundleVersion&lt;/key&gt;
-	&lt;string&gt;15&lt;/string&gt;
+	&lt;string&gt;16&lt;/string&gt;
 	&lt;key&gt;CFBundleShortVersionString&lt;/key&gt;
 	&lt;string&gt;1.2&lt;/string&gt;
 	&lt;key&gt;LSRequiresIPhoneOS&lt;/key&gt;</diff>
      <filename>Info.plist</filename>
    </modified>
    <modified>
      <diff>@@ -328,7 +328,7 @@
 			buildSettings = {
 				ARCHS = &quot;$(ARCHS_STANDARD_32_BIT)&quot;;
 				&quot;CODE_SIGN_IDENTITY[sdk=iphoneos*]&quot; = &quot;iPhone Distribution: Caleb Jaffa&quot;;
-				CURRENT_PROJECT_VERSION = 15;
+				CURRENT_PROJECT_VERSION = 16;
 				GCC_C_LANGUAGE_STANDARD = c99;
 				GCC_WARN_ABOUT_RETURN_TYPE = YES;
 				GCC_WARN_UNUSED_VARIABLE = YES;
@@ -360,7 +360,7 @@
 			buildSettings = {
 				ARCHS = &quot;$(ARCHS_STANDARD_32_BIT)&quot;;
 				&quot;CODE_SIGN_IDENTITY[sdk=iphoneos*]&quot; = &quot;iPhone Developer&quot;;
-				CURRENT_PROJECT_VERSION = 15;
+				CURRENT_PROJECT_VERSION = 16;
 				DEBUG = 1;
 				GCC_C_LANGUAGE_STANDARD = c99;
 				GCC_WARN_ABOUT_RETURN_TYPE = YES;
@@ -377,7 +377,7 @@
 			buildSettings = {
 				ARCHS = &quot;$(ARCHS_STANDARD_32_BIT)&quot;;
 				&quot;CODE_SIGN_IDENTITY[sdk=iphoneos*]&quot; = &quot;iPhone Developer&quot;;
-				CURRENT_PROJECT_VERSION = 15;
+				CURRENT_PROJECT_VERSION = 16;
 				GCC_C_LANGUAGE_STANDARD = c99;
 				GCC_WARN_ABOUT_RETURN_TYPE = YES;
 				GCC_WARN_UNUSED_VARIABLE = YES;</diff>
      <filename>Lexikon.xcodeproj/project.pbxproj</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>2358f63bfe55c2192bd474d4f88b39636bc7b751</id>
    </parent>
  </parents>
  <author>
    <name>Caleb Jaffa</name>
    <email>caleb@clockwi.se</email>
  </author>
  <url>http://github.com/octover/lexikon/commit/5a1405969ce77d0e014f47a9cfaa343b1544c4c3</url>
  <id>5a1405969ce77d0e014f47a9cfaa343b1544c4c3</id>
  <committed-date>2009-02-08T12:17:22-08:00</committed-date>
  <authored-date>2009-02-08T12:17:22-08:00</authored-date>
  <message>Add a button that covers the table 80% opacity, cancels the search when clicked, turned off auto-capitilization, add placeholder</message>
  <tree>519d4f243e33525ff7b1871bb1df112c49ab381e</tree>
  <committer>
    <name>Caleb Jaffa</name>
    <email>caleb@clockwi.se</email>
  </committer>
</commit>
