質問

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