title: How can I update the NSString property/variable after it changed?
body: <p>I am confused about some items on the iOS developer site and require explanation. In the below cases A, B the property / variable is going to get updated, but it doesn't. <a href="https://developer.apple.com/library/ios/#documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/EncapsulatingData/EncapsulatingData.html#//apple_ref/doc/uid/TP40011210-CH5-SW1" rel="nofollow">The page where the below code</a> resides.</p>
  
  <p>These are the property/variable</p>
  
  <ul>
  <li>A) <code>self.badgeView.firstName</code> </li>
  <li>B)  <code>NSDate *originalDate</code> </li>
  </ul>
  
  <p>These are the 2 snippets of code:</p>
  
  <pre><code>NSMutableString *nameString = [NSMutableString stringWithString:@"John"];   
  self.badgeView.firstName = nameString; 
  [nameString appendString:@"ny"];
  NSDate *originalDate = self.lastModificationDate;
  self.lastModificationDate = [NSDate date]; 
  NSLog(@"Last modification date changed from %@ to %@", originalDate, self.lastModificationDate);
  </code></pre>