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