2013-02-12 60 views
1

我已经创建了用于将数据传送到CustomComponent的协议CustomComponentDataSource如何在InterfaceBuilder(Xcode)中显示属性

@protocol CustomComponentDataSource <NSObject> 
- (NSUInteger)numberOfBlocksInView:(CustomComponent *)customComponent; 
... 
@end 

@interface CustomComponent : NSView 
... 
@property id <CustomComponentDataSource> dataSource; 
... 
@end 

是否有可能使这个dataSource财产都看得到,并准备在XCode的接口工具的详情链接?

enter image description here

回答

2

声明它作为一个IBOutlet

@property IBOutlet id <CustomComponentDataSource> dataSource;