XCode & Class Browser Tutorial

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.
 

Screen_shot_2010-04-20_at_9

 
(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. 
 

 

 
Screen_shot_2010-04-20_at_9
(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.

Advertisements
This entry was posted in General and tagged . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s