<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -121,6 +121,7 @@
 }
 
 - (void)addWordToDictionary:(NSMutableDictionary *)words word:(Word *)newWord andDatabase:(BOOL) andDatabase {
+  NSLog(@&quot;in Add Word to Dictionary %d&quot;, andDatabase);
   // get a pointer to the array for the letter this word belongs to
   NSMutableArray *wordsForLetter = [words objectForKey:newWord.letter];
   // if we don't have an array set yet, create it.
@@ -137,14 +138,16 @@
     NSUInteger index = [wordsForLetter indexOfObject:newWord];
     if (index == NSNotFound) {
       // add the word to the array
-      [wordsForLetter addObject:newWord];      
+      [wordsForLetter addObject:newWord];
+      NSLog(@&quot;new Word&quot;);
     }
     else {
       // this word was already in the wordList, update the word object
       [[wordsForLetter objectAtIndex:index] setTranslation:newWord.translation];
+      NSLog(@&quot;update translation&quot;);
     }
   }
-
+  
   if (andDatabase) {
     // if we are adding to the database we need to sort the array since we aren't pulling out of the database alphabetically
     [wordsForLetter sortUsingSelector:@selector(compare:)];</diff>
      <filename>Classes/LexikonAppDelegate.m</filename>
    </modified>
    <modified>
      <diff>@@ -199,11 +199,12 @@
   if (detailViewController == nil) {
     detailViewController = [[DetailViewController alloc] init];
   }
+
   
   detailViewController.word = word.word;
   detailViewController.html = [NSString stringWithContentsOfFile: [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@&quot;translationTemplate.html&quot;]];
   detailViewController.html = [detailViewController.html stringByReplacingOccurrencesOfString:@&quot;{yield}&quot; withString:word.translation];
-
+  
   [self.navigationController pushViewController:detailViewController animated:YES];  
 }
 
@@ -343,7 +344,7 @@
       newWord.translation = translation;
 
       [appDelegate addWordToDictionary:appDelegate.currentWords word:newWord andDatabase:YES];
-
+      NSLog(@&quot;added now show&quot;);
       [self viewWord:newWord];
     }
     else {</diff>
      <filename>Classes/MainViewController.m</filename>
    </modified>
    <modified>
      <diff>@@ -34,5 +34,7 @@
 // remove the word from the database
 //- (void)deleteFromDatabase;
 - (NSString *)description;
+- (NSComparisonResult)compare:(Word *)aWord;
+- (BOOL)isEqual:(Word *)aWord;
 
 @end</diff>
      <filename>Classes/Word.h</filename>
    </modified>
    <modified>
      <diff>@@ -17,6 +17,14 @@
   return word;
 }
 
+- (NSComparisonResult)compare:(Word *)aWord {
+  return [word compare:aWord.word];
+}
+
+- (BOOL)isEqual:(Word *)aWord {
+  return [word isEqual:aWord.word];
+}
+
 - (NSString *)letter {
   return [[word substringToIndex: 1] uppercaseString];
 }</diff>
      <filename>Classes/Word.m</filename>
    </modified>
    <modified>
      <diff></diff>
      <filename>Icon.png</filename>
    </modified>
    <modified>
      <diff>@@ -22,7 +22,7 @@
 		);
 	};
 	29B97313FDCFA39411CA2CEA /* Project object */ = {
-		activeBuildConfigurationName = Debug;
+		activeBuildConfigurationName = Release;
 		activeExecutable = 3CE4FB0D0EB9FB0F0088EBD7 /* Lexikon */;
 		activeSDKPreference = iphoneos2.1;
 		activeTarget = 1D6058900D05DD3D006BFB54 /* Lexikon */;
@@ -452,7 +452,7 @@
 		fRef = 3CF7D6530EE555120086D98C /* MainViewController.m */;
 		name = &quot;MainViewController.m: 300&quot;;
 		rLen = 26;
-		rLoc = 10719;
+		rLoc = 10645;
 		rType = 0;
 		vrLen = 1969;
 		vrLoc = 9508;
@@ -482,7 +482,7 @@
 		fRef = 3CF7D6530EE555120086D98C /* MainViewController.m */;
 		name = &quot;MainViewController.m: 254&quot;;
 		rLen = 0;
-		rLoc = 9101;
+		rLoc = 9027;
 		rType = 0;
 		vrLen = 1553;
 		vrLoc = 8493;
@@ -756,9 +756,9 @@
 	};
 	3CF7D6530EE555120086D98C /* MainViewController.m */ = {
 		uiCtxt = {
-			sepNavIntBoundsRect = &quot;{{0, 0}, {1404, 4103}}&quot;;
-			sepNavSelRange = &quot;{9101, 0}&quot;;
-			sepNavVisRange = &quot;{8493, 1553}&quot;;
+			sepNavIntBoundsRect = &quot;{{0, 0}, {1224, 3960}}&quot;;
+			sepNavSelRange = &quot;{11065, 0}&quot;;
+			sepNavVisRange = &quot;{9771, 1977}&quot;;
 		};
 	};
 	3CF7D6540EE555120086D98C /* Word.h */ = {</diff>
      <filename>Lexikon.xcodeproj/caleb.pbxuser</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>0a062118302e985d24b04081a0e10314d73c01fd</id>
    </parent>
  </parents>
  <author>
    <name>Caleb Jaffa</name>
    <email>caleb@clockwi.se</email>
  </author>
  <url>http://github.com/octover/lexikon/commit/7f661bc55c21e7db430dd2b1d76a9ca98bcbf303</url>
  <id>7f661bc55c21e7db430dd2b1d76a9ca98bcbf303</id>
  <committed-date>2008-12-14T14:15:39-08:00</committed-date>
  <authored-date>2008-12-14T14:15:39-08:00</authored-date>
  <message>fixed duplicate word lookup</message>
  <tree>584a46462ca98875dcd0d7c39259716e3795c8c0</tree>
  <committer>
    <name>Caleb Jaffa</name>
    <email>caleb@clockwi.se</email>
  </committer>
</commit>
