How would one implement a sidebar similar to Mail/iTunes/Finder/etc in Cocoa/IB?

后端 未结 2 1207
南笙
南笙 2020-12-12 14:30

I think the title pretty much says it all... I\'m looking to implement an interface similar to the standard OS X sidebar used in all the above mentioned programs, and I\'m w

2条回答
  •  天命终不由人
    2020-12-12 14:50

    Direct support for this sort of thing was added in Leopard. It's called a 'source list'.

    Please see the AppKit release notes. Search for NSTableViewSelectionHighlightStyleSourceList in the document.

    Or, drag out a table view and select Highlight: Source List in Interface Builder.

提交回复
热议问题