• 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
Re: NSObject hierarchy browser
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSObject hierarchy browser
      • From: Andy Lee <email@hidden>
References: 
 >NSObject hierarchy browser (From: email@hidden)

  • Prev by Date: Re: NSObject hierarchy browser
  • Next by Date: Re: NSObject hierarchy browser
  • Previous by thread: Re: NSObject hierarchy browser
  • Next by thread: Re: NSObject hierarchy browser
  • Index(es):
    • Date
    • Thread