<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -10,13 +10,13 @@
 #import &quot;Host.h&quot;
 
 @interface FlameTouchAppDelegate : NSObject &lt;UIApplicationDelegate&gt; {
-    
-    UIWindow *window;
-    UINavigationController *navigationController;
-    
-    NSNetServiceBrowser *metaBrowser;
-    NSMutableArray *serviceBrowsers;
-    NSMutableArray *hosts;
+  
+  UIWindow *window;
+  UINavigationController *navigationController;
+  
+  NSNetServiceBrowser *metaBrowser;
+  NSMutableArray *serviceBrowsers;
+  NSMutableArray *hosts;
 }
 
 - (NSMutableArray*)hosts;</diff>
      <filename>Classes/FlameTouchAppDelegate.h</filename>
    </modified>
    <modified>
      <diff>@@ -22,114 +22,114 @@
 @synthesize serviceBrowsers;
 
 - (void)applicationDidFinishLaunching:(UIApplication *)application {
-
-    [[UIApplication sharedApplication] setNetworkActivityIndicatorVisible:YES];
-
-    self.serviceBrowsers = [[[NSMutableArray alloc] initWithCapacity: 40] autorelease];
-    self.hosts = [[[NSMutableArray alloc] initWithCapacity: 20] autorelease];
-    
-    // meta-discovery
-    metaBrowser = [[NSNetServiceBrowser alloc] init];
-    [metaBrowser setDelegate:self];
-    [metaBrowser searchForServicesOfType:@&quot;_services._dns-sd._udp.&quot; inDomain:@&quot;&quot;];
-
-    // Configure and show the window
-    [window addSubview:[navigationController view]];
-    [window makeKeyAndVisible];
+  
+  [[UIApplication sharedApplication] setNetworkActivityIndicatorVisible:YES];
+  
+  self.serviceBrowsers = [[[NSMutableArray alloc] initWithCapacity: 40] autorelease];
+  self.hosts = [[[NSMutableArray alloc] initWithCapacity: 20] autorelease];
+  
+  // meta-discovery
+  metaBrowser = [[NSNetServiceBrowser alloc] init];
+  [metaBrowser setDelegate:self];
+  [metaBrowser searchForServicesOfType:@&quot;_services._dns-sd._udp.&quot; inDomain:@&quot;&quot;];
+  
+  // Configure and show the window
+  [window addSubview:[navigationController view]];
+  [window makeKeyAndVisible];
 }
 
 - (void)netServiceBrowser:(NSNetServiceBrowser *)netServiceBrowser didNotSearch:(NSDictionary *)errorInfo {
-    NSLog(@&quot;Did not search: %@&quot;, errorInfo);
+  NSLog(@&quot;Did not search: %@&quot;, errorInfo);
 }
 
 - (void)netServiceBrowserWillSearch:(NSNetServiceBrowser *)netServiceBrowser {
 }
 
 - (void)netServiceBrowser:(NSNetServiceBrowser *)netServiceBrowser didFindService:(NSNetService *)service moreComing:(BOOL)moreServicesComing {
-    if ( [[service type] isEqualToString:@&quot;_tcp.local.&quot;] || [[service type] isEqualToString:@&quot;_udp.local.&quot;] ) {
-        // new meta-service
-        NSString *fullType;
-        if ( [[service type] isEqualToString:@&quot;_tcp.local.&quot;] )
-            fullType = [NSString stringWithFormat:@&quot;%@._tcp&quot;, [service name] ];
-        else
-            fullType = [NSString stringWithFormat:@&quot;%@._udp&quot;, [service name] ];
-
-        // Create a new NSNetService browser looking for services of this type,
-        // and start it looking. We'll have quite a lot of browsers running at
-        // once by the end of this.
-        NSNetServiceBrowser *browser = [[NSNetServiceBrowser alloc] init];
-        [browser setDelegate:self];
-        [browser searchForServicesOfType:fullType inDomain:@&quot;&quot;];
-        [self.serviceBrowsers addObject:browser];
-        [browser release];
-        
-    } else {
-        // This case is coming from one of the browsers created in the other
-        // branch of the conditional, and represents an actual service running
-        // somewhere. Tell the service to resolve itself, we'll display it in
-        // the resolver callback.
-        [service retain]; // released in didResolveAddress / didNotResolve
-        [service setDelegate:self];
-        [service resolve];
-    }
+  if ( [[service type] isEqualToString:@&quot;_tcp.local.&quot;] || [[service type] isEqualToString:@&quot;_udp.local.&quot;] ) {
+    // new meta-service
+    NSString *fullType;
+    if ( [[service type] isEqualToString:@&quot;_tcp.local.&quot;] )
+      fullType = [NSString stringWithFormat:@&quot;%@._tcp&quot;, [service name] ];
+    else
+      fullType = [NSString stringWithFormat:@&quot;%@._udp&quot;, [service name] ];
+    
+    // Create a new NSNetService browser looking for services of this type,
+    // and start it looking. We'll have quite a lot of browsers running at
+    // once by the end of this.
+    NSNetServiceBrowser *browser = [[NSNetServiceBrowser alloc] init];
+    [browser setDelegate:self];
+    [browser searchForServicesOfType:fullType inDomain:@&quot;&quot;];
+    [self.serviceBrowsers addObject:browser];
+    [browser release];
+    
+  } else {
+    // This case is coming from one of the browsers created in the other
+    // branch of the conditional, and represents an actual service running
+    // somewhere. Tell the service to resolve itself, we'll display it in
+    // the resolver callback.
+    [service retain]; // released in didResolveAddress / didNotResolve
+    [service setDelegate:self];
+    [service resolve];
+  }
 }
 
 - (void)netServiceBrowser:(NSNetServiceBrowser *)netServiceBrowser didRemoveService:(NSNetService *)service moreComing:(BOOL)moreServicesComing {
-    NSMutableArray *toRemove = [[NSMutableArray alloc] init];
-    for (Host* host in self.hosts) {
-        if ([host hasService:service]) {
-            [host removeService:service];
-            if ([host serviceCount] == 0) {
-                [toRemove addObject:host];
-            }
-            break; // found it
-        }
+  NSMutableArray *toRemove = [[NSMutableArray alloc] init];
+  for (Host* host in self.hosts) {
+    if ([host hasService:service]) {
+      [host removeService:service];
+      if ([host serviceCount] == 0) {
+        [toRemove addObject:host];
+      }
+      break; // found it
     }
-
-    // Can't mutate while iterating
-    for (Host *host in toRemove) {
-        NSLog(@&quot;No services remaining on host %@, removing&quot;, host);
-        [self.hosts removeObject:host];
-    }
-    [toRemove release];
+  }
+  
+  // Can't mutate while iterating
+  for (Host *host in toRemove) {
+    NSLog(@&quot;No services remaining on host %@, removing&quot;, host);
+    [self.hosts removeObject:host];
+  }
+  [toRemove release];
   
-    [[NSNotificationCenter defaultCenter] postNotificationName:@&quot;newServices&quot; object:self];
+  [[NSNotificationCenter defaultCenter] postNotificationName:@&quot;newServices&quot; object:self];
 }
 
 - (void)netServiceDidResolveAddress:(NSNetService *)service {
-    Host *thehost = nil;
-    struct sockaddr_in* sock = (struct sockaddr_in*)[((NSData*)[[service addresses] objectAtIndex:0]) bytes];
-    NSString *ip = [NSString stringWithFormat:@&quot;%s&quot;, inet_ntoa(sock-&gt;sin_addr)];
-    
-    for (Host* host in self.hosts) {
-        if ( [host.hostname isEqualToString:[service hostName]] ) {
-            thehost = host;
-        }
-    }
-    if (thehost == nil) {
-        thehost = [[Host alloc] initWithHostname:[service hostName] ipAddress:ip];
-        [self.hosts addObject: thehost];
-        [self.hosts sortUsingSelector:@selector(compareByName:)];
-        [thehost release];
+  Host *thehost = nil;
+  struct sockaddr_in* sock = (struct sockaddr_in*)[((NSData*)[[service addresses] objectAtIndex:0]) bytes];
+  NSString *ip = [NSString stringWithFormat:@&quot;%s&quot;, inet_ntoa(sock-&gt;sin_addr)];
+  
+  for (Host* host in self.hosts) {
+    if ( [host.hostname isEqualToString:[service hostName]] ) {
+      thehost = host;
     }
-
-    [thehost addService:service];
-    [service release]; // we retained this before resolving it
-    [[NSNotificationCenter defaultCenter] postNotificationName:@&quot;newServices&quot; object:self];
+  }
+  if (thehost == nil) {
+    thehost = [[Host alloc] initWithHostname:[service hostName] ipAddress:ip];
+    [self.hosts addObject: thehost];
+    [self.hosts sortUsingSelector:@selector(compareByName:)];
+    [thehost release];
+  }
+  
+  [thehost addService:service];
+  [service release]; // we retained this before resolving it
+  [[NSNotificationCenter defaultCenter] postNotificationName:@&quot;newServices&quot; object:self];
 }
 
 - (void)netService:(NSNetService *)service didNotResolve:(NSDictionary *)errorDict {
-    NSLog(@&quot;Did not resolve service %@: %@&quot;, service, errorDict);
-    //[service release]; // we retained this before resolving it
+  NSLog(@&quot;Did not resolve service %@: %@&quot;, service, errorDict);
+  //[service release]; // we retained this before resolving it
 }
 
 - (void)dealloc {
-    [navigationController release];
-    [window release];
-    [metaBrowser release];
-    [self.serviceBrowsers release];
-    [self.hosts release];
-    [super dealloc];
+  [navigationController release];
+  [window release];
+  [metaBrowser release];
+  [self.serviceBrowsers release];
+  [self.hosts release];
+  [super dealloc];
 }
 
 @end</diff>
      <filename>Classes/FlameTouchAppDelegate.m</filename>
    </modified>
    <modified>
      <diff>@@ -10,10 +10,10 @@
 
 
 @interface Host : NSObject {
-    NSString *hostname;
-    NSString *ip;
-    NSMutableArray *services;
-
+  NSString *hostname;
+  NSString *ip;
+  NSMutableArray *services;
+  
 }
 
 @property (nonatomic, retain) NSString *hostname;</diff>
      <filename>Classes/Host.h</filename>
    </modified>
    <modified>
      <diff>@@ -16,54 +16,54 @@
 @synthesize services;
 
 -(id)initWithHostname:(NSString*)hn ipAddress:(NSString*)ipAddress {
-    if ([super init] == nil) return nil;
-    self.hostname = hn;
-    self.ip = ipAddress;
-    self.services = [NSMutableArray arrayWithCapacity:10];
-    return self;
+  if ([super init] == nil) return nil;
+  self.hostname = hn;
+  self.ip = ipAddress;
+  self.services = [NSMutableArray arrayWithCapacity:10];
+  return self;
 }
 
 -(int)serviceCount {
-    return [self.services count];
+  return [self.services count];
 }
 
 -(NSString*)name {
-    // TODO - strip everything after the last apostrophe to get username
-    if ( [self.services count] &gt; 0 )
-        return [[self serviceAtIndex:0] name];
-    return self.hostname;
+  // TODO - strip everything after the last apostrophe to get username
+  if ( [self.services count] &gt; 0 )
+    return [[self serviceAtIndex:0] name];
+  return self.hostname;
 }
 
 -(NSNetService*)serviceAtIndex:(int)i {
-    return (NSNetService*)[self.services objectAtIndex:i];
+  return (NSNetService*)[self.services objectAtIndex:i];
 }
 
 -(BOOL)hasService:(NSNetService*)service {
-    return [self.services containsObject:service];
+  return [self.services containsObject:service];
 }
 
 -(void)addService:(NSNetService*)service {
-    // TODO - if we have more than one active interface, you'll tend to see
-    // services appearing twice. This is not going to happen in the Real World,
-    // as iPhones only have one interface, but it makes the siulator confuing
-    [self.services addObject:service];
-    [self.services sortUsingSelector:@selector(compareByPriority:)];
+  // TODO - if we have more than one active interface, you'll tend to see
+  // services appearing twice. This is not going to happen in the Real World,
+  // as iPhones only have one interface, but it makes the siulator confuing
+  [self.services addObject:service];
+  [self.services sortUsingSelector:@selector(compareByPriority:)];
 }
 
 -(void)removeService:(NSNetService*)service {
-    NSLog(@&quot;removing %@ from %@&quot;, service, self.services);
-    [self.services removeObject:service];
+  NSLog(@&quot;removing %@ from %@&quot;, service, self.services);
+  [self.services removeObject:service];
 }
 
 -(int)compareByName:(Host*)host {
-    return [[self name] localizedCaseInsensitiveCompare:[host name]];
+  return [[self name] localizedCaseInsensitiveCompare:[host name]];
 }
 
 -(void)dealloc {
-    [hostname release];
-    [ip release];
-    [services release];
-    [super dealloc];
+  [hostname release];
+  [ip release];
+  [services release];
+  [super dealloc];
 }
 
 @end</diff>
      <filename>Classes/Host.m</filename>
    </modified>
    <modified>
      <diff>@@ -11,50 +11,50 @@
 @implementation NSNetService (MySortingMethods)
 
 -(int)compareByPriority:(NSNetService*)service {
-    
-    // should not be here.
-    NSArray *serviceOrder = [[[NSArray alloc]initWithObjects:
-                              @&quot;_presence._tcp.&quot;, // ichat 2
-                              @&quot;_ichat._tcp.&quot;, 
-                              @&quot;_ssh._tcp.&quot;, 
-                              @&quot;_sftp._tcp.&quot;, 
-                              @&quot;_afpovertcp._tcp.&quot;, 
-                              @&quot;_hydra._tcp.&quot;, 
-                              @&quot;_workstation._tcp.&quot;, 
-                              @&quot;_ftp._tcp.&quot;, 
-                              @&quot;_distcc._tcp.&quot;, 
-                              @&quot;_iconquer._tcp.&quot;, 
-                              @&quot;_raop._tcp.&quot;, 
-                              @&quot;_airport._tcp.&quot;, 
-                              @&quot;_printer._tcp.&quot;, 
-                              @&quot;_ipp._tcp.&quot;, 
-                              @&quot;_eppc._tcp.&quot;, 
-                              @&quot;_smb._tcp.&quot;, 
-                              @&quot;_clipboard._tcp.&quot;, 
-                              @&quot;_teleport._tcp.&quot;, 
-                              @&quot;_nfs._tcp.&quot;, 
-                              @&quot;_omni-bookmark._tcp.&quot;,
-                              @&quot;_webdav._tcp.&quot;, 
-                              @&quot;_dpap._tcp.&quot;, 
-                              @&quot;_http._tcp.&quot;, 
-                              @&quot;_daap._tcp.&quot;, 
-                              @&quot;_dacp._tcp.&quot;, 
-                              @&quot;_spike._tcp.&quot;, 
-                              @&quot;_beep._tcp.&quot;, 
-                              @&quot;_feed-sharing._tcp.&quot;, 
-                              @&quot;_riousbprint._tcp.&quot;, 
-                              nil
-                              ] autorelease];
-    
-    int i1 = [serviceOrder indexOfObject:[self type]];
-    int i2 = [serviceOrder indexOfObject:[service type]];
-    
-    if (i1 &lt; i2)
-        return NSOrderedAscending;
-    else if (i1 == i2)
-        return NSOrderedSame;
-    else
-        return NSOrderedDescending;
+  
+  // should not be here.
+  NSArray *serviceOrder = [[[NSArray alloc]initWithObjects:
+                            @&quot;_presence._tcp.&quot;, // ichat 2
+                            @&quot;_ichat._tcp.&quot;, 
+                            @&quot;_ssh._tcp.&quot;, 
+                            @&quot;_sftp._tcp.&quot;, 
+                            @&quot;_afpovertcp._tcp.&quot;, 
+                            @&quot;_hydra._tcp.&quot;, 
+                            @&quot;_workstation._tcp.&quot;, 
+                            @&quot;_ftp._tcp.&quot;, 
+                            @&quot;_distcc._tcp.&quot;, 
+                            @&quot;_iconquer._tcp.&quot;, 
+                            @&quot;_raop._tcp.&quot;, 
+                            @&quot;_airport._tcp.&quot;, 
+                            @&quot;_printer._tcp.&quot;, 
+                            @&quot;_ipp._tcp.&quot;, 
+                            @&quot;_eppc._tcp.&quot;, 
+                            @&quot;_smb._tcp.&quot;, 
+                            @&quot;_clipboard._tcp.&quot;, 
+                            @&quot;_teleport._tcp.&quot;, 
+                            @&quot;_nfs._tcp.&quot;, 
+                            @&quot;_omni-bookmark._tcp.&quot;,
+                            @&quot;_webdav._tcp.&quot;, 
+                            @&quot;_dpap._tcp.&quot;, 
+                            @&quot;_http._tcp.&quot;, 
+                            @&quot;_daap._tcp.&quot;, 
+                            @&quot;_dacp._tcp.&quot;, 
+                            @&quot;_spike._tcp.&quot;, 
+                            @&quot;_beep._tcp.&quot;, 
+                            @&quot;_feed-sharing._tcp.&quot;, 
+                            @&quot;_riousbprint._tcp.&quot;, 
+                            nil
+                            ] autorelease];
+  
+  int i1 = [serviceOrder indexOfObject:[self type]];
+  int i2 = [serviceOrder indexOfObject:[service type]];
+  
+  if (i1 &lt; i2)
+    return NSOrderedAscending;
+  else if (i1 == i2)
+    return NSOrderedSame;
+  else
+    return NSOrderedDescending;
 }
 
 @end</diff>
      <filename>Classes/NSNetService+Sortable.m</filename>
    </modified>
    <modified>
      <diff>@@ -15,77 +15,77 @@
 @implementation RootViewController
 
 - (void)viewWillAppear:(BOOL)animated {
-    [super viewWillAppear:animated];
-    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(newServices:) name:@&quot;newServices&quot; object:nil ];
-    self.title = @&quot;Servers&quot;;
+  [super viewWillAppear:animated];
+  [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(newServices:) name:@&quot;newServices&quot; object:nil ];
+  self.title = @&quot;Servers&quot;;
 }
 
 -(void) newServices:(id)whatever {
-    [self.tableView reloadData];
+  [self.tableView reloadData];
 }
 
 - (void)didReceiveMemoryWarning {
-    [super didReceiveMemoryWarning]; // Releases the view if it doesn't have a superview
-    // Release anything that's not essential, such as cached data
+  [super didReceiveMemoryWarning]; // Releases the view if it doesn't have a superview
+  // Release anything that's not essential, such as cached data
 }
 
 #pragma mark Table view methods
 
 - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
-    return 1;
+  return 1;
 }
 
 - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
-    FlameTouchAppDelegate *delegate = (FlameTouchAppDelegate *)[[UIApplication sharedApplication] delegate];
-    return [delegate.hosts count];
+  FlameTouchAppDelegate *delegate = (FlameTouchAppDelegate *)[[UIApplication sharedApplication] delegate];
+  return [delegate.hosts count];
 }
 
 - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
-    static NSString *CellIdentifier = @&quot;HostCell&quot;;
-    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
-    if (cell == nil) {
-        cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:CellIdentifier] autorelease];
-
-        UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(5.0, 0.0, 300.0, 25.0)];
-        label.font = [UIFont systemFontOfSize:16.0];
-        label.textAlignment = UITextAlignmentLeft;
-        label.textColor = [UIColor blackColor];
-        label.autoresizingMask = UIViewAutoresizingFlexibleRightMargin;
-        label.tag = 1;
-        [cell.contentView addSubview:label];
-        [label release];
-      
-        label = [[UILabel alloc] initWithFrame:CGRectMake(5.0, 22.0, 300.0, 20.0)];
-        label.font = [UIFont systemFontOfSize:12.0];
-        label.textAlignment = UITextAlignmentLeft;
-        label.textColor = [UIColor grayColor];
-        label.autoresizingMask = UIViewAutoresizingFlexibleRightMargin;
-        label.tag = 2;
-        [cell.contentView addSubview:label];
-        [label release];
-        
-    }
+  static NSString *CellIdentifier = @&quot;HostCell&quot;;
+  UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
+  if (cell == nil) {
+    cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:CellIdentifier] autorelease];
+
+    UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(5.0, 0.0, 300.0, 25.0)];
+    label.font = [UIFont systemFontOfSize:16.0];
+    label.textAlignment = UITextAlignmentLeft;
+    label.textColor = [UIColor blackColor];
+    label.autoresizingMask = UIViewAutoresizingFlexibleRightMargin;
+    label.tag = 1;
+    [cell.contentView addSubview:label];
+    [label release];
+  
+    label = [[UILabel alloc] initWithFrame:CGRectMake(5.0, 22.0, 300.0, 20.0)];
+    label.font = [UIFont systemFontOfSize:12.0];
+    label.textAlignment = UITextAlignmentLeft;
+    label.textColor = [UIColor grayColor];
+    label.autoresizingMask = UIViewAutoresizingFlexibleRightMargin;
+    label.tag = 2;
+    [cell.contentView addSubview:label];
+    [label release];
     
-    FlameTouchAppDelegate *delegate = (FlameTouchAppDelegate *)[[UIApplication sharedApplication] delegate];
-    Host *host = (Host*)[delegate.hosts objectAtIndex:indexPath.row];
-    ((UILabel*)[cell viewWithTag:1]).text = [host name];
-    ((UILabel*)[cell viewWithTag:2]).text = [NSString stringWithFormat:@&quot;%@ (%@)&quot;, host.hostname, host.ip];
-    cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
-    return cell;
+  }
+  
+  FlameTouchAppDelegate *delegate = (FlameTouchAppDelegate *)[[UIApplication sharedApplication] delegate];
+  Host *host = (Host*)[delegate.hosts objectAtIndex:indexPath.row];
+  ((UILabel*)[cell viewWithTag:1]).text = [host name];
+  ((UILabel*)[cell viewWithTag:2]).text = [NSString stringWithFormat:@&quot;%@ (%@)&quot;, host.hostname, host.ip];
+  cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
+  return cell;
 }
 
 - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
-    // Navigation logic may go here. Create and push another view controller.
-    FlameTouchAppDelegate *delegate = (FlameTouchAppDelegate *)[[UIApplication sharedApplication] delegate];
-    Host *host = (Host*)[delegate.hosts objectAtIndex:indexPath.row];
-    
-    ServiceViewController *svc = [[ServiceViewController alloc] initWithHost:host];
-    [self.navigationController pushViewController:svc animated:TRUE];
-    [svc release];
+  // Navigation logic may go here. Create and push another view controller.
+  FlameTouchAppDelegate *delegate = (FlameTouchAppDelegate *)[[UIApplication sharedApplication] delegate];
+  Host *host = (Host*)[delegate.hosts objectAtIndex:indexPath.row];
+  
+  ServiceViewController *svc = [[ServiceViewController alloc] initWithHost:host];
+  [self.navigationController pushViewController:svc animated:TRUE];
+  [svc release];
 }
 
 - (void)dealloc {
-    [super dealloc];
+  [super dealloc];
 }
 
 </diff>
      <filename>Classes/RootViewController.m</filename>
    </modified>
    <modified>
      <diff>@@ -10,8 +10,8 @@
 #import &quot;Host.h&quot;
 
 @interface ServiceViewController : UITableViewController {
-    Host *host;
-    NSDictionary *serviceNames;
+  Host *host;
+  NSDictionary *serviceNames;
 }
 
 - (id)initWithHost:(Host*)thehost;</diff>
      <filename>Classes/ServiceViewController.h</filename>
    </modified>
    <modified>
      <diff>@@ -11,153 +11,153 @@
 
 @implementation ServiceViewController
 
-    
+
 - (id)initWithHost:(Host*)thehost {
-    if ([super initWithStyle:UITableViewStylePlain] == nil) return nil;
-    
-    // this UTTERLY does not belong here.
-    serviceNames = [[NSDictionary alloc] initWithObjectsAndKeys:
-        @&quot;iChat 2 presence&quot;, @&quot;_presence._tcp.&quot;,
-        @&quot;iChat 1 presence&quot;, @&quot;_ichat._tcp.&quot;, 
-        @&quot;Remote login&quot;, @&quot;_ssh._tcp.&quot;, 
-        @&quot;SFTP server&quot;, @&quot;_sftp._tcp.&quot;, 
-        @&quot;Personal file sharing&quot;, @&quot;_afpovertcp._tcp.&quot;, 
-        @&quot;SubEthaEdit document&quot;, @&quot;_hydra._tcp.&quot;, 
-        @&quot;Workgroup Manager&quot;, @&quot;_workstation._tcp.&quot;, 
-        @&quot;FTP server&quot;, @&quot;_ftp._tcp.&quot;, 
-        @&quot;Xcode distributed compiler&quot;, @&quot;_distcc._tcp.&quot;, 
-        @&quot;iConquer game server&quot;, @&quot;_iconquer._tcp.&quot;, 
-        @&quot;AirTunes speaker&quot;, @&quot;_raop._tcp.&quot;, 
-        @&quot;Airport base station&quot;, @&quot;_airport._tcp.&quot;, 
-        @&quot;LPR printer sharing&quot;, @&quot;_printer._tcp.&quot;, 
-        @&quot;Internet Printing Protocol&quot;, @&quot;_ipp._tcp.&quot;, 
-        @&quot;Remote AppleEvents&quot;, @&quot;_eppc._tcp.&quot;, 
-        @&quot;Windows file sharing&quot;, @&quot;_smb._tcp.&quot;, 
-        @&quot;Shared clipboard&quot;, @&quot;_clipboard._tcp.&quot;, 
-        @&quot;Teleport server&quot;, @&quot;_teleport._tcp.&quot;, 
-        @&quot;NFS server&quot;, @&quot;_nfs._tcp.&quot;, 
-        @&quot;OmniWeb shared bookmarks&quot;, @&quot;_omni-bookmark._tcp.&quot;,
-        @&quot;WebDav server&quot;, @&quot;_webdav._tcp.&quot;, 
-        @&quot;iPhoto shared photos&quot;, @&quot;_dpap._tcp.&quot;, 
-        @&quot;Web server&quot;, @&quot;_http._tcp.&quot;, 
-        @&quot;iTunes shared music&quot;, @&quot;_daap._tcp.&quot;, 
-        @&quot;iTunes remote control&quot;, @&quot;_dacp._tcp.&quot;, 
-        @&quot;Spike shared clipboard&quot;, @&quot;_spike._tcp.&quot;, 
-        @&quot;Xgrid distributed computing&quot;, @&quot;_beep._tcp.&quot;, 
-        @&quot;NetNewsWire shared feed list&quot;, @&quot;_feed-sharing._tcp.&quot;, 
-        @&quot;Airport Express printer sharing&quot;, @&quot;_riousbprint._tcp.&quot;, 
-        @&quot;Safari Web page&quot;, @&quot;_webbookmark._tcp.&quot;,
-        nil
-        ];
-    
-    host = [thehost retain];
+  if ([super initWithStyle:UITableViewStylePlain] == nil) return nil;
+  
+  // this UTTERLY does not belong here.
+  serviceNames = [[NSDictionary alloc] initWithObjectsAndKeys:
+                  @&quot;iChat 2 presence&quot;, @&quot;_presence._tcp.&quot;,
+                  @&quot;iChat 1 presence&quot;, @&quot;_ichat._tcp.&quot;, 
+                  @&quot;Remote login&quot;, @&quot;_ssh._tcp.&quot;, 
+                  @&quot;SFTP server&quot;, @&quot;_sftp._tcp.&quot;, 
+                  @&quot;Personal file sharing&quot;, @&quot;_afpovertcp._tcp.&quot;, 
+                  @&quot;SubEthaEdit document&quot;, @&quot;_hydra._tcp.&quot;, 
+                  @&quot;Workgroup Manager&quot;, @&quot;_workstation._tcp.&quot;, 
+                  @&quot;FTP server&quot;, @&quot;_ftp._tcp.&quot;, 
+                  @&quot;Xcode distributed compiler&quot;, @&quot;_distcc._tcp.&quot;, 
+                  @&quot;iConquer game server&quot;, @&quot;_iconquer._tcp.&quot;, 
+                  @&quot;AirTunes speaker&quot;, @&quot;_raop._tcp.&quot;, 
+                  @&quot;Airport base station&quot;, @&quot;_airport._tcp.&quot;, 
+                  @&quot;LPR printer sharing&quot;, @&quot;_printer._tcp.&quot;, 
+                  @&quot;Internet Printing Protocol&quot;, @&quot;_ipp._tcp.&quot;, 
+                  @&quot;Remote AppleEvents&quot;, @&quot;_eppc._tcp.&quot;, 
+                  @&quot;Windows file sharing&quot;, @&quot;_smb._tcp.&quot;, 
+                  @&quot;Shared clipboard&quot;, @&quot;_clipboard._tcp.&quot;, 
+                  @&quot;Teleport server&quot;, @&quot;_teleport._tcp.&quot;, 
+                  @&quot;NFS server&quot;, @&quot;_nfs._tcp.&quot;, 
+                  @&quot;OmniWeb shared bookmarks&quot;, @&quot;_omni-bookmark._tcp.&quot;,
+                  @&quot;WebDav server&quot;, @&quot;_webdav._tcp.&quot;, 
+                  @&quot;iPhoto shared photos&quot;, @&quot;_dpap._tcp.&quot;, 
+                  @&quot;Web server&quot;, @&quot;_http._tcp.&quot;, 
+                  @&quot;iTunes shared music&quot;, @&quot;_daap._tcp.&quot;, 
+                  @&quot;iTunes remote control&quot;, @&quot;_dacp._tcp.&quot;, 
+                  @&quot;Spike shared clipboard&quot;, @&quot;_spike._tcp.&quot;, 
+                  @&quot;Xgrid distributed computing&quot;, @&quot;_beep._tcp.&quot;, 
+                  @&quot;NetNewsWire shared feed list&quot;, @&quot;_feed-sharing._tcp.&quot;, 
+                  @&quot;Airport Express printer sharing&quot;, @&quot;_riousbprint._tcp.&quot;, 
+                  @&quot;Safari Web page&quot;, @&quot;_webbookmark._tcp.&quot;,
+                  nil
+                  ];
+  
+  host = [thehost retain];
+  
+  UIView *header = [[UIView alloc] initWithFrame:CGRectMake(0.0, 0.0, 600.0, 64.0)];
+  
+  UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(5.0, 0.0, 300.0, 25.0)];
+  label.font = [UIFont systemFontOfSize:16.0];
+  label.textAlignment = UITextAlignmentLeft;
+  label.textColor = [UIColor blackColor];
+  label.autoresizingMask = UIViewAutoresizingFlexibleRightMargin;
+  label.text = [host name];
+  [header addSubview:label];
+  [label release];
+  
+  label = [[UILabel alloc] initWithFrame:CGRectMake(5.0, 22.0, 300.0, 40.0)];
+  label.font = [UIFont systemFontOfSize:12.0];
+  label.textAlignment = UITextAlignmentLeft;
+  label.textColor = [UIColor grayColor];
+  label.autoresizingMask = UIViewAutoresizingFlexibleRightMargin;
+  label.numberOfLines = 2;
+  // TODO - don't hard-code the service count here, it can change dynamically.
+  label.text = [NSString stringWithFormat:@&quot;%@ (%@)\n%d services&quot;, host.hostname, host.ip, [host serviceCount]];
+  [header addSubview:label];
+  
+  [label release];
+  
+  UIView *line = [[UIView alloc] initWithFrame:CGRectMake(0, header.frame.size.height - 1, 600, 1)];
+  line.backgroundColor = [UIColor grayColor];
+  [header addSubview:line];
+  [line release];
+  
+  self.tableView.tableHeaderView = header;
+  [header release];
+  
+  self.tableView.delegate = self;
+  [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(newServices:) name:@&quot;newServices&quot; object:nil ];
+  self.title = [host name];
+  
+  return self;
+}
 
-    UIView *header = [[UIView alloc] initWithFrame:CGRectMake(0.0, 0.0, 600.0, 64.0)];
+-(void) newServices:(id)whatever {
+  [self.tableView reloadData];
+}
+
+- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
+  return 1;
+}
 
+- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
+  return [host serviceCount];
+}
+
+- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
+  static NSString *CellIdentifier = @&quot;ServiceCell&quot;;
+  UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
+  if (cell == nil) {
+    cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:CellIdentifier] autorelease];
+    
     UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(5.0, 0.0, 300.0, 25.0)];
     label.font = [UIFont systemFontOfSize:16.0];
     label.textAlignment = UITextAlignmentLeft;
     label.textColor = [UIColor blackColor];
     label.autoresizingMask = UIViewAutoresizingFlexibleRightMargin;
-    label.text = [host name];
-    [header addSubview:label];
+    label.tag = 1;
+    [cell.contentView addSubview:label];
     [label release];
     
-    label = [[UILabel alloc] initWithFrame:CGRectMake(5.0, 22.0, 300.0, 40.0)];
+    label = [[UILabel alloc] initWithFrame:CGRectMake(5.0, 22.0, 300.0, 20.0)];
     label.font = [UIFont systemFontOfSize:12.0];
     label.textAlignment = UITextAlignmentLeft;
     label.textColor = [UIColor grayColor];
     label.autoresizingMask = UIViewAutoresizingFlexibleRightMargin;
-    label.numberOfLines = 2;
-    // TODO - don't hard-code the service count here, it can change dynamically.
-    label.text = [NSString stringWithFormat:@&quot;%@ (%@)\n%d services&quot;, host.hostname, host.ip, [host serviceCount]];
-    [header addSubview:label];
-
+    label.tag = 2;
+    [cell.contentView addSubview:label];
     [label release];
-
-    UIView *line = [[UIView alloc] initWithFrame:CGRectMake(0, header.frame.size.height - 1, 600, 1)];
-    line.backgroundColor = [UIColor grayColor];
-    [header addSubview:line];
-    [line release];
-    
-    self.tableView.tableHeaderView = header;
-    [header release];
-
-    self.tableView.delegate = self;
-    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(newServices:) name:@&quot;newServices&quot; object:nil ];
-    self.title = [host name];
-
-    return self;
-}
-
--(void) newServices:(id)whatever {
-    [self.tableView reloadData];
-}
-
-- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
-    return 1;
-}
-
-- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
-    return [host serviceCount];
-}
-
-- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
-    static NSString *CellIdentifier = @&quot;ServiceCell&quot;;
-    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
-    if (cell == nil) {
-        cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:CellIdentifier] autorelease];
-
-        UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(5.0, 0.0, 300.0, 25.0)];
-        label.font = [UIFont systemFontOfSize:16.0];
-        label.textAlignment = UITextAlignmentLeft;
-        label.textColor = [UIColor blackColor];
-        label.autoresizingMask = UIViewAutoresizingFlexibleRightMargin;
-        label.tag = 1;
-        [cell.contentView addSubview:label];
-        [label release];
-        
-        label = [[UILabel alloc] initWithFrame:CGRectMake(5.0, 22.0, 300.0, 20.0)];
-        label.font = [UIFont systemFontOfSize:12.0];
-        label.textAlignment = UITextAlignmentLeft;
-        label.textColor = [UIColor grayColor];
-        label.autoresizingMask = UIViewAutoresizingFlexibleRightMargin;
-        label.tag = 2;
-        [cell.contentView addSubview:label];
-        [label release];
+  }
+  
+  NSNetService *service = [host serviceAtIndex:indexPath.row];
+  NSString *text = [serviceNames objectForKey:[service type]];
+  if (text == nil) {
+    ((UILabel*)[cell viewWithTag:1]).text = [NSString stringWithFormat:@&quot;%@:%i&quot;, [service type], [service port]];
+  } else {
+    ((UILabel*)[cell viewWithTag:1]).text = [NSString stringWithFormat:@&quot;%@ (%@:%i)&quot;, text, [service type], [service port]];
+  }
+  ((UILabel*)[cell viewWithTag:2]).text = [service name];
+  
+  NSURL *anURL = [NSURL URLWithString:[service name]];
+  if (anURL &amp;&amp; [service name]) {
+    if ([[service name] rangeOfString:@&quot;:&quot;].location != NSNotFound) {
+      cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
     }
-    
-    NSNetService *service = [host serviceAtIndex:indexPath.row];
-    NSString *text = [serviceNames objectForKey:[service type]];
-    if (text == nil) {
-        ((UILabel*)[cell viewWithTag:1]).text = [NSString stringWithFormat:@&quot;%@:%i&quot;, [service type], [service port]];
-    } else {
-        ((UILabel*)[cell viewWithTag:1]).text = [NSString stringWithFormat:@&quot;%@ (%@:%i)&quot;, text, [service type], [service port]];
-    }
-    ((UILabel*)[cell viewWithTag:2]).text = [service name];
-
-    NSURL *anURL = [NSURL URLWithString:[service name]];
-    if (anURL &amp;&amp; [service name]) {
-        if ([[service name] rangeOfString:@&quot;:&quot;].location != NSNotFound) {
-            cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
-        }
-    }
-
-    return cell;
+  }
+  
+  return cell;
 }
 
 - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
-    UILabel * URLLabel = (UILabel*)[[tableView cellForRowAtIndexPath:indexPath] viewWithTag:2];
-    if (URLLabel.text != nil) {
-        NSURL *theURL = [NSURL URLWithString:URLLabel.text];
-        [[UIApplication sharedApplication] openURL:theURL];
-    }	
+  UILabel * URLLabel = (UILabel*)[[tableView cellForRowAtIndexPath:indexPath] viewWithTag:2];
+  if (URLLabel.text != nil) {
+    NSURL *theURL = [NSURL URLWithString:URLLabel.text];
+    [[UIApplication sharedApplication] openURL:theURL];
+  }	
 }
 
 - (void)dealloc {
-    [serviceNames release];
-    [host release];
-    [super dealloc];
+  [serviceNames release];
+  [host release];
+  [super dealloc];
 }
 
 </diff>
      <filename>Classes/ServiceViewController.m</filename>
    </modified>
    <modified>
      <diff>@@ -3,6 +3,6 @@
 //
 
 #ifdef __OBJC__
-    #import &lt;Foundation/Foundation.h&gt;
-    #import &lt;UIKit/UIKit.h&gt;
+#import &lt;Foundation/Foundation.h&gt;
+#import &lt;UIKit/UIKit.h&gt;
 #endif</diff>
      <filename>FlameTouch_Prefix.pch</filename>
    </modified>
    <modified>
      <diff>@@ -9,9 +9,9 @@
 #import &lt;UIKit/UIKit.h&gt;
 
 int main(int argc, char *argv[]) {
-    
-    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
-    int retVal = UIApplicationMain(argc, argv, nil, nil);
-    [pool release];
-    return retVal;
+  
+  NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
+  int retVal = UIApplicationMain(argc, argv, nil, nil);
+  [pool release];
+  return retVal;
 }</diff>
      <filename>main.m</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>550cc5dabec64e573deb0b7445c726eb67376645</id>
    </parent>
  </parents>
  <author>
    <name>Tom Insam</name>
    <email>tom@jerakeen.org</email>
  </author>
  <url>http://github.com/jerakeen/flametouch/commit/4a6eff0aa57619453ac32f76460d00be0dd90d9d</url>
  <id>4a6eff0aa57619453ac32f76460d00be0dd90d9d</id>
  <committed-date>2009-06-26T04:01:55-07:00</committed-date>
  <authored-date>2009-06-26T04:01:55-07:00</authored-date>
  <message>whitespace.</message>
  <tree>8ad1385eb0daeaca6d2061bb3e568dcc7ac93199</tree>
  <committer>
    <name>Tom Insam</name>
    <email>tom@jerakeen.org</email>
  </committer>
</commit>
