Hi,
When declaring @property(ies), are the objects automatically allocated? Because I don't see any alloc/init being applied, and the method implementations that use the instance variables don't seem to do it either?
and in .m
When declaring @property(ies), are the objects automatically allocated? Because I don't see any alloc/init being applied, and the method implementations that use the instance variables don't seem to do it either?
Code:
#import <Foundation/Foundation.h>
@interface NewObjEntity : NSObject {
NSString *varOne;
int varTwo;
NSDate *dateVar;
}
@property (nonatomic, copy) NSString *varOne;
@property (nonatomic) int varTwo;
@property (nonatomic, readonly) NSDate *dateVar;
and in .m
Code:
@synthesize varOne, varTwo, dateVar;