Reflection on the reflection API
Ha! It turns out I was doing too much work with my automatic parameter setting. Turns out the reflection API has methods for getting and setting field values directly. Very convenient for setting parameters, methinks. I will rework it using those methods rather than mine.
These field-setting methods are still primitive compared to KVC in Cocoa. They’re intended for debuggers directly editing fields, not for dynamic application setting, so they don’t actually call setter/getter methods—they do it directly. That’s probably fine for parameter setting.