I've got the following object:
@interface Foo : NSObject
@property (readonly, strong) NSString *someVar;
@end
@implemtation Foo
@sythensize someVar = _someVar;
@end
And then I subclass it:
@interface Bar : Foo
-(id)initWithString:(NSString *)string;
@end
@implementation Bar
-(id)initWithString:(NSString *)string {
_someVar = string;
}
@end
but I get a "use of undeclared identifier _someVar"..... Why doesn't Bar know about foo's instance variable _someVar ?