Suppose I have a view derived class named MyView. In the same Xcode project MyView is defined, I have many NIBs. Some of the NIBs have a Custom View with the class set to MyView.
Now suppose I want to change the name MyView to something else or rename an outlet. I need to find all NIBs using MyView so I can update them.
My question is: What is the best way to find all NIBs using MyView?
The methods I've thought of are:
Use find
find . -name '*.nib' -exec echo "{}" \; -exec grep MyView "{}" \;
Run the app until every NIB is loaded and see when the runtime complains in Console
Is there a better way to do this?