Design Element
Comment on "Core Data and Instance Variables"
by Scott Stevenson — May 22
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.
Back to "Core Data and Instance Variables"
Design Element

Copyright © Scott Stevenson 2004-2015