alexrozanski / PXSourceList

Source List control for the Mac
Other
638 stars 76 forks source link

Any plans to add tiers? #51

Closed kylebrowning closed 9 years ago

kylebrowning commented 9 years ago

Wondering if there is or ever was a plan to add tiers/nesting to this.

alexrozanski commented 9 years ago

It's supported out of the box just like in NSOutlineView. Just use -sourceList:child:ofItem: and -sourceList:isItemExpandable: in your data source.

kylebrowning commented 9 years ago

I guess I meant as an example. Im a bit perplexed on how to achieve it with PXSourceList.

alexrozanski commented 9 years ago

Sure — if you have a look at the cell-based source list demo target there's an example there (the 'Playlist group' item under 'Playlists'). The API for creating something similar is the same with the view-based source list using the two methods I mention above.