これを行うにはどうすればよいですか:
@interface Foo : NSObject
@property (readonly) int bar;
@end
...
@interface Foo()
@property (nonatomic) int bar;
@end
@implementation Foo
@synthesize bar = _bar;
// stuff that does self.bar = 123;
@end
一部の外部クラスは foo.bar = 123.. を呼び出すことができませんが、Foo 内の内部メソッドはできます... ?