title: Initializing a readonly property
body: <p>I was trying to create a property which is readonly. I wanted to initialize with a value from the class creating an instance of this class, e.g.</p>
  
  <p><code>@property (retain,readonly) NSString *firstName;</code></p>
  
  <p>And I tried to initialize it like this:</p>
  
  <p><code>
  -(id)initWithName:(NSString *)n{
  self.firstName = n;
  }
  </code></p>
  
  <p>Once I did this, the compiler reported an error that the readonly property cannot be assigned. So how can i do this ?</p>