Sure, accessors can be quite useful. Xcode can even generate them for you from an entity definition.
That said, I don't think it makes sense to generate accessors for everything just because you can. More code means more to compile and more to maintain.
In many cases, you can address the potential for spelling errors by creating NSString constants for the property names.
by Scott Stevenson — May 22
That said, I don't think it makes sense to generate accessors for everything just because you can. More code means more to compile and more to maintain.
In many cases, you can address the potential for spelling errors by creating NSString constants for the property names.