2013-02-12 62 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;