StoryBoard 中没有 File's Owner 怎样绑定 ArrayController Content Array 和 Document ?

2015-04-15 10:22:51 +08:00
 likaci
在Cocoa Programming for Mac OSX 第8章中
要绑定一个ArrayController 和 NSDocument中的Array


https://books.google.com.hk/books?id=_Kdf-wDBQ48C&printsec=frontcover&hl=zh-CN#v=onepage&q&f=false 135页

但是书中版本是用的Xib, 在StoryBoard中没有File's Owner这个选项
---
现在我是在ViewController中new了一个Document
然后绑定ArrayController 到ViewController的self.doc.array


这种姿势对吗?
1626 次点击
所在节点    macOS
0 条回复

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/183813

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX