No, you only need to explicitly synthesize (to get the synthesized ivar) if you explicitly implement all of the accessor methods (both getter and setter for readwrite
properties, just the getter for readonly
properties). You've written the getter for this readwrite
property, but not the setter, so the ivar will still be synthesized for you. Thus, as your code stands, you do not need to explicitly @synthesize
.
If you made this property readonly
, then implementing a getter would prevent your ivar from being automatically synthesized. Likewise, since this is readwrite
, if you implemented both the getter and the setter, that would require you to synthesize the ivar (if you wanted one).