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