nosedive25
nosedive25

Reputation: 2435

NSOutlineView as Source list with core data

Im working on an app that needs a source list like the the ones found in Finder. So far I've gotten Core Data working with an NSOutlineView but the group headings don't look very source list like. A real source list group heading looks like alt text and the standered on in an NSOutlineView looks like alt text. It appears that the only major differences are text color and capital letters. Is it possible to change the color of only the group headings or is there a source list heading "theme" I can use?

Upvotes: 1

Views: 2915

Answers (2)

Nathan Kinsinger
Nathan Kinsinger

Reputation: 25061

In Interface Builder make sure to set the TableView's Highlight value to Source List (the default is regular). Then make sure you implement the -outlineView:isGroupItem: delegate method and return YES for any group item.

Upvotes: 2

theunraveler
theunraveler

Reputation: 3284

Check out the SourceView sample code in Apple's developer documentation. They provide a really good example of how to do this. It requires a bit of code in the NSOutlineView delegate, and there is no default "theme" or anything, but this should put you on the right track.

Upvotes: 1

Related Questions