我正在努力设置正确的绑定以使 SourceView (OutlineView) 在基于视图的模式下与 TreeController 一起使用。它在基于单元的模式下可以正常工作。
不幸的是我找不到如何设置标题和标题文本,我得到的只是空的东西:≤≤
我得到什么:
如果您想深入了解 XCode 项目:
https://www.dropbox.com/s/qz3m9p5vd2qvngb/MasterDetail.zip
从另一个帖子中获取数据:
[
{
"itemName": "Item 1",
"children": []
},
{
"itemName": "Item 2",
"children": [
{
"itemName": "Item 2.1",
"children": []
},
{
"itemName": "Item 2.2",
"children": [
{
"itemName": "Item 2.2.1",
"children": []
},
{
"itemName": "Item 2.2.2",
"children": []
}
]
}
]
},
{
"itemName": "Item 3",
"children": []
}
]