NSOutlineView and NSTreeController example

醉酒当歌 提交于 2019-12-12 07:46:22

问题


Please send me some links on how to use NSOutlineView with NSTreeController bindings without using core data.


回答1:


In addition to the documentation, Apple's sample SourceView project should help you better understand things:

"SourceView" is a Cocoa application that demonstrates how to use NSOutlineView driven by NSTreeController and various other Cocoa classes to produce a Finder-like left column source view. Among the key features used to imitate this commonly used view are the use of NSTableViewSelectionHighlightStyleSourceList, NSViewController, NSCollectionView, and WebView.




回答2:


Here is a useful blog-post, which I wrote, which may prove to be useful: The simplest NSTreeController example




回答3:


You can find a simple example of a NSOutlineView datasource in my response to NSOutlineView example



来源:https://stackoverflow.com/questions/1170514/nsoutlineview-and-nstreecontroller-example

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!