I thought i’d write up a bit on the Class Browser feature of XCode, since it is one of my favourite tools of the IDE, and will be doing it as a paraphrased extract of Professional Xcode by WROX.
Essentially, this tool provides a structured summary of the classes within your project, describing the methods, instance variables and inheritance hierarchies, and is always up-to-date in that.
You start the Class Browser by pressing (CMD->Shift->C) or finding it in the Project -> Class Browser menu.
(Figure 1: Professional Xcode 3)
There are three panes to look at: This consists of the Class list, listing all classes, interfaces, and protocols defined in the project, sorted normally by hierarchy from superclass to it’s subordinates. If you click on a class, this will display in the Details pane the member elements of that class, along with the source that defines the class below it. If you select a member in the details list (right) you will get it’s declaration in the editor pane below it. You may find a little book icon appear on the left pane, which means online documentation is available for that class, which when clicked, will bring up a new window showing the documentation.
(Figure 2: Professional Xcode 3)
You may find a little book icon appear on the left pane, which means online documentation is available for that class, which when clicked, will bring up a new window showing the documentation.
So, this is it, a little intro to Class Browser.
The chapter you will find this is, is chapter 9, which will have more information on options you can enable, as well as browser shortcuts.