Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
好的,这是我的情况:
NSTableView
NSArrayController
NSMutableArray
然而 :
我应该怎么做,以便没有表格单元格是可编辑的?
在您的 NSTableViewDelegate 中为此方法返回 NO:
- (BOOL)tableView:(NSTableView *)aTableView shouldEditTableColumn:(NSTableColumn *)aTableColumn row:(NSInteger)rowIndex