Finding all references of a variable or a method in Xcode4

前端 未结 7 679
悲&欢浪女
悲&欢浪女 2020-12-03 20:48

There\'a a similar question here but I couldn\'t make use of the answers in XCode 4. I googled it but I couldn\'t come up with anything useful either. What\'s your effective

相关标签:
7条回答
  • 2020-12-03 21:32

    For methods and properties, just use the Related Files menu as I describe here: https://stackoverflow.com/a/17931752/1709587

    For variables, there is no easy way to specifically find references, per se (you'll need to use AppCode or the ugly, slow, cumbersome refactor hack), but you shouldn't normally need to. Public member variables are rare in Objective-C, so generally variables are only referred to within the file in which they are declared. A plain text search for the variable name using cmd+f should suffice, usually.

    0 讨论(0)
提交回复
热议问题