Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

MacDonaldsd

macrumors 65816
Original poster
Sep 8, 2005
1,005
0
London , UK
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 ?
 

kainjow

Moderator emeritus
Jun 15, 2000
7,958
7
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.
 

MacDonaldsd

macrumors 65816
Original poster
Sep 8, 2005
1,005
0
London , UK
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.

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.
 

kainjow

Moderator emeritus
Jun 15, 2000
7,958
7
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.