I was wondering what the point of @property and @synthesise were. At the moment I use the following to declare something:
//Class.m
#import "Class.h"
CCNode *node;
@implementation
//init, etc..
But I have seen others use:
@property (nonatomic, etc..) CCNode* node;
@synthesise (nonatomic, etc..) node;
//I am not too sure on how this type of declaration works, please correct me on how it's done.
They both seem to work in the same way, what are the advantages of the @property and @synthesise way? Do they do different things, if so, what?