• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
[ANN] view hierarchy inspector
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[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
  • Follow-Ups:
    • Re: [ANN] view hierarchy inspector
      • From: "Kevin Ballard" <email@hidden>
  • Prev by Date: Re: firstResponder comparison failing
  • Next by Date: Re: firstResponder comparison failing
  • Previous by thread: Re: firstResponder comparison failing
  • Next by thread: Re: [ANN] view hierarchy inspector
  • Index(es):
    • Date
    • Thread