[ANN] view hierarchy inspector
[ANN] view hierarchy inspector
- Subject: [ANN] view hierarchy inspector
- From: Cameron Hayne <email@hidden>
- Date: Fri, 9 Jun 2006 16:40:43 -0400
Since I wasn't quite satisfied with any of the existing tools, I
ended up writing my own version of the sort of "view hierarchy"
inspector that I asked about in a previous posting on this list.
You can get the project files at:
http://hayne.net/MacDev/ViewHierarchy/
Here's an extract of the instructions on that web page:
The "View Hierarchy" window is a runtime inspector that allows you to
examine the hierarchy of NSView objects in the windows of your
application. I.e. it is intended as a debugging tool, or just as an
aid to understanding.
To use it in your own project, you need only add the following files
to your project:
HTViewHierarchyCtl.h
HTViewHierarchyCtl.m
HTViewHierarchy.nib
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. You will
be able to choose any of the windows in your application from the
popup menu and see the hierarchy of views of that window. Clicking on
one of the items in the "View Hierarchy" window will flash the
corresponding NSView object so you can identify which one it is.
--
Cameron Hayne
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden