V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
likaci
V2EX  ›  macOS

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

  •  
  •   likaci · 2015-04-15 10:22:51 +08:00 · 1613 次点击
    这是一个创建于 3300 天前的主题,其中的信息可能已经有所发展或是发生改变。
    在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


    这种姿势对吗?
    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1527 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 16:52 · PVG 00:52 · LAX 09:52 · JFK 12:52
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.