Is there any way to, in an automated fashion, batch-modify the bindings in a nib?
We have plugin projects which we often 'clone' in order to produce a new, similar plugin.
Each plugin has a number of nibs, which are largely similar between projects.
The cloning script we have takes an existing project, and the prefix used in its class names, constants, and variables, and does all the appropriate substitutions in source code and property lists.
For example, if the original project is called "Microstim Staircase", it'll use the prefix MSS throughout the project (MSSSpatialFreqCPDKey, etc). The cloning script takes "Microstim Staircase", "MSS", and a new project name and a new prefix, and processes the source files accordingly.
It also changes the names of the nib files, but to update the bindings to use the new prefix, a person has to go through the nibs, find all the bindings, and change them. For example, the text field for setting Spatial Frequency needs to have its binding changed from MSSSpatialFreqCPD to XXSpatialFreqCPD. This is error-prone.
Is there any way to automate this process? |