When we create a property and defined a synthesize for it, the compiler automatically creates getters and setters methods, right?
Now, If I execute this command:
@property(nonatomic) int value;
@synthesize value;
value = 50;
What happens:
The compiler saves the value '50' in the property?
property (nonatomic) int value; // Here is the stored value 50!
or the compiler creates a variable behind the scenes with the same name of the property like this:
interface myClass: NSObject {
int value; // Here is the stored value 50!
}
What actually happens and what the alternatives listed above is correct?