window which has left pane like finder

Discussion in 'Mac Programming' started by McBgnr, May 28, 2010.

  1. McBgnr macrumors regular

    Apr 13, 2009
    How to go about making a window which has a left pane like finder. A number of items appear on the left pane in Finder window and each of these when selected show contents of the directory on the right pane.

    How to make such a left/right pane type of window.
  2. skunkworker macrumors regular

    Sep 9, 2007
    Have 2 NSViews. When someone clicks on the left, update the right
  3. McBgnr thread starter macrumors regular

    Apr 13, 2009
    So the NSView on the left will have buttons for individual items ? or a TreeView can be used for that?
  4. Sydde macrumors 68020


    Aug 17, 2009
    I believe Finder uses a specific AppKit object: investigate NSRuleEditor.
  5. Krevnik macrumors 68040


    Sep 8, 2003
    NSOutlineView with some tweaks in the delegate and data source is used for the "Source List" pane. I've done some work with them, and it's actually not terrible (although not great) to pull it off in 10.5 or 10.6. 10.4 and earlier is a royal pain to handle though.

    NSRuleEditor is more for editing predicates like you would for a smart search folder, a smart playlist, and so on.

Share This Page