문제

Being a starter in Cocoa Programming, I would like to know using the existing NSTableView can one be able to achieve Disclosure Button? Or one has to follow NSOutlineview?

enter image description here

From the above picture, on selecting the list view and getting a Folder[Super view] and getting the children using a Disclosure button

Also can a registered Mac Developer get Finder app's sample code?

Thanks

도움이 되었습니까?

해결책

NSOutlineView is just a subclass of NSTableView, so yes just use NSOutlineView to use the disclosure button.

Check out the docs for how to use it.

And no, Apple never released the source code for Finder.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top