<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>Assets/IconBig.psd.zip</filename>
    </added>
    <added>
      <filename>Assets/arrow buttons copy.psd</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff></diff>
      <filename>Assets/Icon2.psd</filename>
    </modified>
    <modified>
      <diff>@@ -76,7 +76,7 @@
     &lt;div class=&quot;wrapper&quot;&gt;
       &lt;div class=&quot;date&quot;&gt;&lt;a href=&quot;http://www.shacknews.com/laryn.x?id=&lt;%= postId %&gt;&quot;&gt;&lt;%= date %&gt;&lt;/a&gt;&lt;/div&gt;
       &lt;div class=&quot;author&quot;&gt;&lt;a href=&quot;http://www.shacknews.com/profile/&lt;%= author %&gt;&quot;&gt;&lt;%= author %&gt;&lt;/a&gt;&lt;/div&gt;
-      &lt;div class=&quot;body&quot;&gt;&lt;%= body %&gt;&lt;/div&gt;
+      &lt;div class=&quot;body&quot;&gt;&lt;a href=&quot;http://www.shacknews.com/laryn.x?id=19152340#itemanchor_19152340&quot;&gt;clickme&lt;/a&gt;&lt;br/&gt;&lt;%= body %&gt;&lt;/div&gt;
     &lt;/div&gt;
   &lt;/body&gt;
 &lt;/html&gt;
\ No newline at end of file</diff>
      <filename>Assets/post.html</filename>
    </modified>
    <modified>
      <diff>@@ -11,6 +11,7 @@
 #import &quot;ExternalWebViewController.h&quot;
 #import &quot;Feed.h&quot;
 #import &quot;Post.h&quot;
+#import &quot;RegexKitLite.h&quot;
 
 @interface DetailViewController : UIViewController &lt;UIActionSheetDelegate&gt; {
   IBOutlet UIWebView *postView;
@@ -26,6 +27,9 @@
   int currentPostIndex;
   BOOL loading;
   BOOL popAfterLoad;
+  
+  BOOL nextNavigateIsToAThread;
+  int  nextThreadPostId;
 }
 
 - (id)initWithStoryId:(int)aStoryId rootPost:(Post *)post;</diff>
      <filename>Classes/DetailViewController.h</filename>
    </modified>
    <modified>
      <diff>@@ -123,10 +123,21 @@
 
 // UIWebViewDelegate methods
 - (BOOL)webView:(UIWebView *)aWebView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType {
+  NSString *url = [[request URL] absoluteString];
   if (navigationType == UIWebViewNavigationTypeLinkClicked) {
-    ExternalWebViewController *controller = [[ExternalWebViewController alloc] initWithRequest:request];
-    [[self navigationController] pushViewController:controller animated:YES];
-    [controller release];
+    if ([url isMatchedByRegex:@&quot;shacknews\\.com/laryn\\.x\\?id=\\d+&quot;]) {
+      int threadId = [[url stringByMatching:@&quot;shacknews\\.com/laryn\\.x\\?id=(\\d+)&quot; capture:1] intValue];
+      
+      nextNavigateIsToAThread = YES;
+      nextThreadPostId = threadId;
+      [[[Post alloc] initWithThreadId:threadId delegate:self] autorelease];
+      
+      return NO;
+    } else {
+      ExternalWebViewController *controller = [[ExternalWebViewController alloc] initWithRequest:request];
+      [[self navigationController] pushViewController:controller animated:YES];
+      [controller release];
+    }
     return NO;
   }
   
@@ -226,23 +237,31 @@
 }
 
 - (void)didFinishLoadingThread:(Post *)post {
-  currentPost = currentRoot;
-  currentPostIndex = 0;
-  [self showPost:currentRoot];
-  [self updateViews];
-  [tableView reloadData];
-  
-  [refreshButtonLoading stopAnimating];
-  
-  [[UIApplication sharedApplication] setNetworkActivityIndicatorVisible:NO];
-  NSLog(@&quot;Done refreshing...&quot;);
-  loading = NO;
-  
-  if (popAfterLoad) {
-    [self.navigationController popViewControllerAnimated:YES];
+  if (nextNavigateIsToAThread) {
+    nextNavigateIsToAThread = NO;
+    DetailViewController *controller = [[DetailViewController alloc] initWithStoryId:storyId rootPost:post];
+    // TODO: Show linked post, not root post.  ID for this post is stored in &quot;nextThreadPostId&quot;
+    [[self navigationController] pushViewController:controller animated:YES];
+    [controller release];
+  } else {
+    currentPost = currentRoot;
+    currentPostIndex = 0;
+    [self showPost:currentRoot];
+    [self updateViews];
+    [tableView reloadData];
+    
+    [refreshButtonLoading stopAnimating];
+    
+    [[UIApplication sharedApplication] setNetworkActivityIndicatorVisible:NO];
+    NSLog(@&quot;Done refreshing...&quot;);
+    loading = NO;
+    
+    if (popAfterLoad) {
+      [self.navigationController popViewControllerAnimated:YES];
+    }
+    
+    popAfterLoad = NO;    
   }
-  
-  popAfterLoad = NO;
 }
 
 - (IBAction)reply:(id)sender {</diff>
      <filename>Classes/DetailViewController.m</filename>
    </modified>
    <modified>
      <diff>@@ -10,7 +10,6 @@
 #import &quot;TouchXML.h&quot;
 #import &quot;Post.h&quot;
 
-
 @interface Feed : NSObject {
   id delegate;
   </diff>
      <filename>Classes/Feed.h</filename>
    </modified>
    <modified>
      <diff>@@ -32,7 +32,7 @@
 // Init with an XML feed at this URL
 - (id)initWithUrl:(NSString *)urlString delegate:(id)aDelegate {
   [self init];
-  delegate = aDelegate; //[aDelegate retain];
+  delegate = [aDelegate retain];
   [self addPostsInFeedWithUrl:urlString];
   return self;
 }
@@ -75,6 +75,7 @@
 	[self addPostsInFeedWithString:test];
 	[test release];
 	[delegate feedDidFinishLoading];
+  [delegate release];
 	[partialData release];
 	partialData = nil;
 	//partialData = [[NSMutableData alloc] init];</diff>
      <filename>Classes/Feed.m</filename>
    </modified>
    <modified>
      <diff>@@ -72,7 +72,7 @@
 
 // Code from: http://discussions.apple.com/thread.jspa?messageID=7949889
 - (UIImage *)scaleAndRotateImage {
-  int kMaxResolution = 640; // Or whatever
+  int kMaxResolution = 800; // Or whatever
 	
 	CGImageRef imgRef = image.CGImage;
 	</diff>
      <filename>Classes/Image.m</filename>
    </modified>
    <modified>
      <diff>@@ -206,10 +206,8 @@
 	}
 	else{ [[self navigationController] pushViewController:chattyView animated:YES];
 	}
-	//NSLog(@&quot;%i&quot;, [chattyView retainCount] );
-	while( [chattyView retainCount] != 1 ) [chattyView release];
-	chattyView = nil;
-	//[chattyView release];
+	[chattyView release];
+  chattyView = nil;
 }
 
 @end</diff>
      <filename>Classes/NewsAdditions/RootViewController.m</filename>
    </modified>
    <modified>
      <diff>@@ -39,7 +39,7 @@
 					&lt;object class=&quot;IBUIToolbar&quot; id=&quot;10291295&quot;&gt;
 						&lt;reference key=&quot;NSNextResponder&quot; ref=&quot;191373211&quot;/&gt;
 						&lt;int key=&quot;NSvFlags&quot;&gt;266&lt;/int&gt;
-						&lt;string key=&quot;NSFrame&quot;&gt;{{-1, 372}, {320, 44}}&lt;/string&gt;
+						&lt;string key=&quot;NSFrame&quot;&gt;{{0, 372}, {320, 44}}&lt;/string&gt;
 						&lt;reference key=&quot;NSSuperview&quot; ref=&quot;191373211&quot;/&gt;
 						&lt;bool key=&quot;IBUIOpaque&quot;&gt;NO&lt;/bool&gt;
 						&lt;bool key=&quot;IBUIClearsContextBeforeDrawing&quot;&gt;NO&lt;/bool&gt;</diff>
      <filename>ExternalWebViewController.xib</filename>
    </modified>
    <modified>
      <diff>@@ -47,6 +47,7 @@
 		FA461BC20E4255B500E3654D /* Post.m in Sources */ = {isa = PBXBuildFile; fileRef = FA461BC00E4255B500E3654D /* Post.m */; };
 		FA461BC80E42561900E3654D /* DetailViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = FA461BC70E42561900E3654D /* DetailViewController.m */; };
 		FA461BCB0E42568900E3654D /* DetailViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = FA461BCA0E42568900E3654D /* DetailViewController.xib */; };
+		FA4FA15C0F3E7ADF001EB103 /* RegexKitLite.m in Sources */ = {isa = PBXBuildFile; fileRef = FA4FA15B0F3E7ADF001EB103 /* RegexKitLite.m */; };
 		FA55573C0E4E1F7700A79258 /* ExternalWebViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = FA55573B0E4E1F7700A79258 /* ExternalWebViewController.xib */; };
 		FA55574A0E4E214600A79258 /* ExternalWebViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = FA5557490E4E214600A79258 /* ExternalWebViewController.m */; };
 		FA8EBF860E6343D2009B657C /* Image.m in Sources */ = {isa = PBXBuildFile; fileRef = FA8EBF850E6343D2009B657C /* Image.m */; };
@@ -121,6 +122,8 @@
 		FA461BC60E42561900E3654D /* DetailViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DetailViewController.h; sourceTree = &quot;&lt;group&gt;&quot;; };
 		FA461BC70E42561900E3654D /* DetailViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = DetailViewController.m; sourceTree = &quot;&lt;group&gt;&quot;; };
 		FA461BCA0E42568900E3654D /* DetailViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = DetailViewController.xib; sourceTree = &quot;&lt;group&gt;&quot;; };
+		FA4FA15A0F3E7ADF001EB103 /* RegexKitLite.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = RegexKitLite.h; path = &quot;../../../Desktop/RegexKitLite-2.2/RegexKitLite.h&quot;; sourceTree = SOURCE_ROOT; };
+		FA4FA15B0F3E7ADF001EB103 /* RegexKitLite.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = RegexKitLite.m; path = &quot;../../../Desktop/RegexKitLite-2.2/RegexKitLite.m&quot;; sourceTree = SOURCE_ROOT; };
 		FA55573B0E4E1F7700A79258 /* ExternalWebViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = ExternalWebViewController.xib; sourceTree = &quot;&lt;group&gt;&quot;; };
 		FA5557480E4E214600A79258 /* ExternalWebViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ExternalWebViewController.h; sourceTree = &quot;&lt;group&gt;&quot;; };
 		FA5557490E4E214600A79258 /* ExternalWebViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ExternalWebViewController.m; sourceTree = &quot;&lt;group&gt;&quot;; };
@@ -188,6 +191,8 @@
 			children = (
 				FA461BA90E4255A300E3654D /* TouchXML */,
 				FAF681690E57966300C61212 /* Base64 */,
+				FA4FA15A0F3E7ADF001EB103 /* RegexKitLite.h */,
+				FA4FA15B0F3E7ADF001EB103 /* RegexKitLite.m */,
 				28A0AAE50D9B0CCF005BE974 /* LatestChatty_Prefix.pch */,
 				29B97316FDCFA39411CA2CEA /* main.m */,
 			);
@@ -429,6 +434,7 @@
 				59F766360E6500970022FE0C /* RootViewController.m in Sources */,
 				59F766370E6500970022FE0C /* RSSReader.m in Sources */,
 				599CEF140E856E8900B7FB2F /* LoadingView.m in Sources */,
+				FA4FA15C0F3E7ADF001EB103 /* RegexKitLite.m in Sources */,
 			);
 			runOnlyForDeploymentPostprocessing = 0;
 		};
@@ -447,6 +453,10 @@
 				GCC_PRECOMPILE_PREFIX_HEADER = YES;
 				GCC_PREFIX_HEADER = LatestChatty_Prefix.pch;
 				INFOPLIST_FILE = Info.plist;
+				OTHER_LDFLAGS = (
+					&quot;-licucore&quot;,
+					&quot;-lxml2&quot;,
+				);
 				PRODUCT_NAME = LatestChatty;
 				PROVISIONING_PROFILE = &quot;37679E7C-14AC-4EAE-9374-BD9962AAA40F&quot;;
 				&quot;PROVISIONING_PROFILE[sdk=iphoneos*]&quot; = &quot;37679E7C-14AC-4EAE-9374-BD9962AAA40F&quot;;
@@ -463,6 +473,10 @@
 				GCC_PRECOMPILE_PREFIX_HEADER = YES;
 				GCC_PREFIX_HEADER = LatestChatty_Prefix.pch;
 				INFOPLIST_FILE = Info.plist;
+				OTHER_LDFLAGS = (
+					&quot;-licucore&quot;,
+					&quot;-lxml2&quot;,
+				);
 				PRODUCT_NAME = LatestChatty;
 				PROVISIONING_PROFILE = &quot;37679E7C-14AC-4EAE-9374-BD9962AAA40F&quot;;
 				&quot;PROVISIONING_PROFILE[sdk=iphoneos*]&quot; = &quot;37679E7C-14AC-4EAE-9374-BD9962AAA40F&quot;;
@@ -533,6 +547,10 @@
 				GCC_PRECOMPILE_PREFIX_HEADER = YES;
 				GCC_PREFIX_HEADER = LatestChatty_Prefix.pch;
 				INFOPLIST_FILE = Info.plist;
+				OTHER_LDFLAGS = (
+					&quot;-licucore&quot;,
+					&quot;-lxml2&quot;,
+				);
 				PRODUCT_NAME = LatestChatty;
 				&quot;PROVISIONING_PROFILE[sdk=iphoneos*]&quot; = &quot;B5007E2F-8F81-46C2-8917-6445C108AE5C&quot;;
 			};</diff>
      <filename>LatestChatty.xcodeproj/project.pbxproj</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>Assets/DragonDrop.png</filename>
    </removed>
    <removed>
      <filename>Assets/DragonDrop.psd</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>521325f6fdcd2e2abbb59b6e23f4ca43692c4828</id>
    </parent>
  </parents>
  <author>
    <name>Alex Wayne</name>
    <email>alex@beautifulpixel.com</email>
  </author>
  <url>http://github.com/Squeegy/latest-chatty/commit/d154ec5e181776cb0f97518c72e93ee2a4fd91c5</url>
  <id>d154ec5e181776cb0f97518c72e93ee2a4fd91c5</id>
  <committed-date>2009-04-21T11:23:46-07:00</committed-date>
  <authored-date>2009-04-21T11:23:46-07:00</authored-date>
  <message>Added a search results view</message>
  <tree>f58df88acd0243fd662aae681f938a42ad35e284</tree>
  <committer>
    <name>Alex Wayne</name>
    <email>alex@beautifulpixel.com</email>
  </committer>
</commit>
