Possible Duplicate:
@property and @synthesize
What does it mean when a class has a property, but has no variable for it? rather I see things like:
@interface myClass : someClass
@property (nonatomic,retain) UIButton* button;
@end
and in the implementation:
@synthesize button = _button;
So who is _button
?
What does the @synthesize
do when declared like this?
Does this mean that the class now has a private var called _button
? Can I treat _button
as a private var of the class?