I am using NSCoding for local data persistence. I have a bunch of model classes that need to be stored locally. I've been implementing encodeWithCoder and initWithCoder protocol methods for hours. But it's not actually "coding", it's just repeating the following three steps:
- Find the variables that need to be stored locally.
- Write encodeWithCoder given those variables.
- Write initWithCoder given those variables.
Is there a more efficient way to do this?