IBOutletCollections and Interface Builder on OSX

前端 未结 1 361
攒了一身酷
攒了一身酷 2020-12-17 15:56

I have a NSViewController , in which I wish to create a an IBOutletCollection(NSTextField).

In my header file, I introduced these lines of

相关标签:
1条回答
  • 2020-12-17 16:33

    Unfortunately, IBOutletCollection is only supported on iOS. For OS X, you'll have to create a separate outlet for each object, or else come up with an alternate way to reference the text fields in your XIB.

    0 讨论(0)
提交回复
热议问题