I haven't built it, but I'd like to solve this problem with a general-
purpose pointer wrapper that uses Objective-C type signatures to
access and modify elements of structures.
I would imagine that it would take a signature in its constructor and
use something like key paths to identify elements.
That might be too big a project to write in your current situation,
but if you start with an ObjC class that wraps your struct, that class
could probably be evolved into a more general tool over time.
Tim