title: Parse filterResults findObjects vs findObjectsInBackgroundWithBlock
body: <p>I am filling a tableview in my app with Parse data and then allowing my users to sift through that data with a search field. Long story short it works fine except I am receiving a <code>A long-running operation is being executed on the main thread</code> error. I know it is on this line <code>NSArray *results = [query findObjects];</code> so I figured I would run a <code>findObjectsInBackgroundWithBlock</code> to try to fix that. Well it did but now the tableview always comes up empty. Should I not worry about the warning? If I should be, what is wrong with the code? Thanks!</p>
  
  <p>Search Works But Gets Warning:</p>
  
  <pre><code>-(void)filterResults:(NSString *)searchTerm {
  
      [self.searchResults removeAllObjects];
      PFQuery *query = [PFQuery queryWithClassName:@"NHLVideos"];
      [query whereKey:@"User" containsString:searchTerm];
      NSArray *results = [query findObjects];
      [self.searchResults addObjectsFromArray:results];
  }
  </code></pre>
  
  <p>No Warning But No Search Results :</p>
  
  <pre><code>-(void)filterResults:(NSString *)searchTerm {
  
      [self.searchResults removeAllObjects];
      PFQuery *query = [PFQuery queryWithClassName:@"NHLVideos"];
      [query whereKey:@"User" containsString:searchTerm];
      [query findObjectsInBackgroundWithBlock:^(NSArray *objects, NSError *error) {
          if (!error){
              //No Error
              [self.searchResults addObjectsFromArray:objects];
          } else {
              NSLog(@"Error %@", error);
          }
      }];
  }
  </code></pre>
  
  <p>Thanks again!</p>