This program serves as a demonstration of how to use the HTViewHierarchy NIB file which provides a runtime inspector for examining the hierarchy of views within your program.

The "View Hierarchy" window allows you to choose one of the windows in your application and then shows the hierarchy of views of that window. If you click on one of the items in the hierarchy, it will flash the corresponding view in red.

To make use of this within your project, add the files HTViewHierarchyCtl.h, HTViewHierarchyCtl.m, and HTViewHierarchy.nib into your project, and then add the following line in an appropriate place (e.g. applicationDidFinishLaunching):
[NSBundle loadNibNamed: @"HTViewHierarchy" owner: self];
The "View Hierarchy" window will then show up automatically.

hayne.net/MacDev/ViewHierarchy

This is free software - it is licensed under the GPL.
Last modified: June 9, 2006
Cameron Hayne (macdev@hayne.net)