NSOutlineView

Discussion in 'Mac Programming' started by MacDonaldsd, Dec 12, 2007.

  1. MacDonaldsd macrumors 65816

    MacDonaldsd

    Joined:
    Sep 8, 2005
    Location:
    London , UK
    #1
    Im having a bit of a problem getting my head around NSOutlineview to do a source view.

    I have two Core Data entities that I want to be displayed in a source view, each with a header above them.

    I can't find any clear examples, so I was wondering if anyone new of any tutorials ?
     
  2. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #2
    Since you're using Core Data, you probably want NSTreeController so you can use bindings. I personally have never used it, but search around, there are examples.
     
  3. MacDonaldsd thread starter macrumors 65816

    MacDonaldsd

    Joined:
    Sep 8, 2005
    Location:
    London , UK
    #3
    Yeah NSTreeController likes each level of the hierarchy to be a it own class, the difficulty is I want two classes at the second level of the tree.
     
  4. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #4
    Have you read this?

    I've never used NSTreeController, and haven't used much of Core Data. I've been using normal delegate-based NSOutlineViews for years and haven't had any problems. You just need to setup your model so that they respond to similar methods.
     

Share This Page