Possible Duplicate:
How does an underscore in front of a variable in a cocoa objective-c class work?
I'm currently learning Objective-C and I'm following a tutorial that uses variables a little funny (to me at least!).
Basically, class variables are declared like this:
@interface .. {
UITextField *_titleField;
UIImageView *_imageView;
}
@property (retain) IBOutlet UITextField *titleField;
@property (retain) IBOutlet UIImageView *imageView;
and then synthesized like this:
@synthesize titleField = _titleField;
@synthesize imageView = _imageView;
So basically, whats the purpose of this?