title: Recommended coding style for setting property values in Objective-C
body: <p>Let's say I have this interface:</p>
  
  <pre><code>// .h
  @interface DataObject : NSObject {
      NSString* value;
  }
  
  @property (retain) NSString* value;
  
  @end
  
  // .m
  
  @implementation DataObject
  
  @synthetize value
  
  @end
  </code></pre>
  
  <p>As far as I understand, the following two snippets are identical:</p>
  
  <pre><code>DataObject *o = [[[DataObject alloc] init] autorelease];
  [o setValue: @"Hello"];
  
  DataObject *o = [[[DataObject alloc] init] autorelease];
  o.value = @"Hello";
  </code></pre>
  
  <p>Am I correct? If yes, should I prefer one over another one? Or is it just a style preference?</p>
  
  <p>Thank you.</p>