Is there a shortcut for ...
Finding out where a method is called
and
Finding out where a property is set
At the moment, I can't find any kind of function that will highlight this useful information for any given method or property I have in my code. Can anyone help?
Thanks
To find where a method is called, use the editor to search all files in your project for the method name (edit menu>find>find in workspace, or command shift F).
To figure out where an instance variable is being changed, there is a facility in the Xcode debugger called watchpoints. They've been broken for a while, but they seem to be fixed again in Xcode 4.4.
To set a watchpoint, stop your program at a breakpoint in the class who's instance variable you want to watch. Then go to the variables view in the debug area, open the disclosure triangle next to "self", and find the variable you want to watch. Right click on it and select the item 'Watch "<variablename>"' in the popup that appears. Watchpoints are listed along with code breakpoints in the breakpoint navigator, and you can enable and disable them as desired.
Once you've set a breakpoint, the next time your code changes that variable, the debugger will stop it and show you the line.