title: Update pinned PFObject in Parse Local Storage from Parse Cloud
body: <p>By <code>object.saveEventually()</code>, I will be able to sync my data in local storage with the cloud in Parse.</p>
  
  <p>But here is what I am confused about, in the doc, it declares:</p>
  
  <blockquote>
    <p>When an object is pinned, every time you update it by fetching or
    saving new data, the copy in the local datastore will be updated
    automatically</p>
  </blockquote>
  
  <p>But then, next example, few paragraphs away, unpins all objects then updates <code>HighScores</code> by pinning the new <code>scores</code> array with name <code>HighScores</code></p>
  
  <pre class="lang-swift prettyprint-override"><code>PFQuery *query = [PFQuery queryWithClassName:@"GameScore"];
  [query orderByDescending:@"score"];
  
  // Query for new results from the network
  [[query findObjectsInBackground] continueWithSuccessBlock:^id(BFTask *task) {
    return [[PFObject unpinAllObjectsInBackgroundWithName:@"HighScores"] continueWithSuccessBlock:^id(BFTask *ignored) {
      // Cache the new results.
      NSArray *scores = task.result;
      return [PFObject pinAllInBackground:scores withName:@"HighScores"];
    }];
  }];
  </code></pre>
  
  <p>Therefore, should I unpin all objects of <code>HighScores</code> in order to update existing scores in <code>HighScores</code>? </p>
  
  <p>Will <code>findObjectsInBackground</code> automatically update any found object which is pinned? I am quite confused.</p>
  
  <p>Thank you!</p>