How to override @synthesized getters?
Just implement the method manually, for example:
- (BOOL)myBoolProperty{ // do something else ... return myBoolProperty;}
The compiler will then not generate a getter method.
Inside of your property definition you can specify getter and setter methods as follows:
@property (nonatomic, retain, getter = getterMethodName, setter = setterMethodName) NSString *someString;
You can specify the getter only, the setter only, or both.
Just implement your own getter and the compiler will not generate one. The same goes for setter.
For example:
@property float value;
is equivalent to:
- (float)value;- (void)setValue:(float)newValue;