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