title: Objective-C property - getter behaviour
body: <p>What is technically wrong with the following:</p>
  
  <pre><code>@property(nonatomic, assign) NSUInteger timestamp;
  @property(nonatomic, readonly, getter = timestamp) NSUInteger startTime;
  @property(nonatomic, assign) NSUInteger endTime;
  </code></pre>
  
  <p>I am sure I can find a better way to organise this, but this is what I ended up with at one point in my project and I noticed that <strong>accessing the startTime property always returned 0, even when the timestamp property was set to a correct timestamp</strong>.</p>
  
  <p>It seems having set the getter of startTime to an existing property (timestamp), it is not forwarding the value of timestamp when I do:</p>
  
  <pre><code>event.startTime =&gt; 0
  event.timestamp =&gt; 1340920893
  </code></pre>
  
  <p>All these are timestamps by the way.</p>
  
  <p>Just a reminder, I know the above should have happened in my project but I don't understand why accessing startTime doesn't forward onto timestamp property.</p>
  
  <p>UPDATE</p>
  
  <p>In my implementation I am synthesising all of these properties:</p>
  
  <pre><code>@synthesize timestamp, endTime, startTime;
  </code></pre>
  
  <p>Please check an example object to use that demonstrates this at my gist on GitHub: <a href="https://gist.github.com/3013951" rel="nofollow">https://gist.github.com/3013951</a></p>