IPhoto Style Sidebar

I am trying to achieve this “effect” in cocoa (photo taken from Things.app from Cultured Code):

alt text

+2
source share
2 answers

PXSourceList makes it easy to create a list of sources.

+4
source

Try using NSTableView or NSOutlineView with the selection style set in the list of sources:

[outlineView setSelectionHighlightStyle: NSTableViewSelectionHighlightStyleSourceList]

Then create a custom NSCell class that displays your icon and text.

+4
source

Source: https://habr.com/ru/post/1774039/


All Articles