Disclaimer: I'm pretty new to Objective-C
I have a couple of questions related to @property and @synthesize.
Let's say I have property
@property (strong, nonatomic) NSString *name;
1- I know that on Xcode 4.4+ you can skip doing @synthesize for the properties as they are automatically done. So I assume that the iVar generated should be the same as the name of the property right? In general, If I do @synthesize name;
the iVar would be the same as the name of the property?
2- I know that @synthesize name = _name;
is used when I have manually declared a private variable with the name of _name and I want to make the compiler use it as my property's iVar.
I need to know, what happens if I do @synthesize name = _name;
WITHOUT actually having a private variable declared.
Thank you in advance.