title: What is the modern objective c syntax for NSUserDefault setObject?
body: <p>I just showed my colleague my code and he reminded me to use modern objective c syntax. I felt like an idiot because I had no idea what he meant. How can I convert:</p>
  
  <pre><code>NSUserDefaults *rankDate = [NSUserDefaults standardUserDefaults];
  [rankDate setObject:self.date forKey:@"rankDate"];
  [rankDate setObject:[NSNumber numberWithInteger:self.date.people] forKey:@"people"];
  [rankDate synchronize];
  </code></pre>
  
  <p>into "modern objective c syntax"?</p>
  
  <p>I've been doing this for years and never heard of this syntax. Should I be worried?</p>