In Xcode, you can control-click on a function definition, and choose "Find Call Hierarchy" from the context menu. This shows all the callers of that function, in the left side navigation area.
This also works for properties, but it it only shows calls to the getter. Is there a way to see calls to the setter?
Selecting the menu item caused Xcode to write Foo.setter:bar
in the search field. I tried replacing getter
with setter
, and it didn't seem to work. (Actually, it seems to have triggered a bug in a Xcode. A process called com.apple.dt.SKAgent
is now chewing huge amounts of CPU and has to be killed.)