Possible Duplicate:
Is there any reason to declare ivars if you're using properties exclusively in Objective-C?
This class:
@interface MyClass
{
Something* pointer;
}
@property (nonatomic, retain) Something* pointer;
@end
@implementation MyClass
@synthesize pointer
@end
Apparently runs the same as:
@interface MyClass
@property (nonatomic, retain) Something* pointer;
@end
@implementation MyClass
@synthesize pointer
@end
When you create a synthesized property, do you also need a pointer to it in its class interface? I noticed that my program apparently runs the same whether I have the pointer or not. Is it better to have the pointer declared or not?