I have a NSViewController
, in which I wish to create a an IBOutletCollection(NSTextField)
.
In my header file, I introduced these lines of code :
@property (strong) IBOutletCollection(NSTextField) NSArray *iNetworkIDOctets;
@property (strong) IBOutletCollection(NSTextField) NSArray *oWildcardOctets;
@property (strong) IBOutletCollection(NSTextField) NSArray *oSubnetOctets;
My problem is that I can't see the IBOutletCollection in Interface Builder, therefore, I can't connect my NSTextField items to my outlet collection.
Normal IBoutlet
properties work fine though.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…