Re: NSObject hierarchy browser
Re: NSObject hierarchy browser
- Subject: Re: NSObject hierarchy browser
- From: Andy Lee <email@hidden>
- Date: Sat, 27 Nov 2004 15:08:00 -0500
On Nov 27, 2004, at 2:43 PM, email@hidden wrote:
In an app of mine, i need to set up an NSBrowser than contains the
Hierarchy of all NSObjects, just like the instances pane in
ProjectBuilder. In order to not reinvent the wheel, i was wondering if
anyone has done this in the past and has any pointers or any code?
What hierarchy do you mean? Do you mean all the classes in your app?
All the classes defined in some set of Objective-C files? It seems to
me the hard part would be constructing the data structure that
represents the hierarchy; once you do that, using NSBrowser should be
straightforward and almost any NSBrowser sample code should do.
That said, I have a class hierarchy browser in my AppKiDo code, which
you can download at <http://homepage.mac.com/aglee/downloads>. The
hierarchy I display is the AppKit and Foundation classes, which I get
from an instance of my AKDatabase class, which I construct by parsing a
bunch of .h and .html files. I imagine about 1% of the total code
would be useful to you, but you're free to use whatever you like. I
recommend you start by looking at the AKTopicBrowserController class,
which is the delegate for my NSBrowser.
--Andy
_______________________________________________
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