iphone - trying to understand @property
<p>Suppose I have two classes. In the first one I declare this in Class1.h</p>

<pre><code>@interface Class1 : UIViewController {

  NSString *myString;
  id myObject;

}
</code></pre>

<p>On the second class I go beyond that I declare it like</p>

<pre><code>@interface Class2 : UIViewController {

  NSString *myString;
  id myObject;

}

@property (nonatomic, retain) NSString *myString;
@property (nonatomic, retain) id myObject;
</code></pre>

<p>and then I <strong>@synthesize myString, myObject</strong> on Class2.m</p>

<p>Then, on my main program, I create two objects: one based on Class1 and another one based on Class2.</p>

<p>What effect the @property of class2 will have? Will every value assigned to both values on Class2 be always retained? If so, do I need to "release" them? How?</p>

<p>Thanks.</p>
