我创建了一个协议CustomComponentDataSource
,用于将数据传递到CustomComponent
。
@protocol CustomComponentDataSource <NSObject>
- (NSUInteger)numberOfBlocksInView:(CustomComponent *)customComponent;
...
@end
@interface CustomComponent : NSView
...
@property id <CustomComponentDataSource> dataSource;
...
@end
是否可以使此dataSource
属性可见并准备在XCode Interface Bulder中链接?