1
實例化我具有基於NSTableView
用定製視圖細胞視圖(NSTableCellView
子類 - 它也被設置在屬性檢查員作爲自定義類)。 NSTableCellView
是從xib創建的。NSTableView的不`噸顯示NSTableCellView從XIB
首先在
viewDidLoad
我做NSNib *nib = [[NSNib alloc] initWithNibNamed:@"ApplicationInfoView" bundle:nil]; [self.tableView registerNib:nib forIdentifier: @"ApplicationInfoView"];
在數據源方法
tableView:objectValueForTableColumn:row:
我做的:ApplicationInfoView *infoView = [aTableView makeViewWithIdentifier:@"ApplicationInfoView" owner:self];
它被實例化,但不能將表顯示任何東西,alth儘管在滾動時,我可以在日誌中看到單元格已正確創建。
謝謝。