我有一个从NSArrayController获取数据的NSTableView,我需要删除当前选定的行。我知道NSManagedObjectContext有一个deleteObject:方法,但是我不知道如何从NSArrayController中删除它。
发布于 2010-01-15 11:03:45
使用NSArrayController的remove:操作。
发布于 2012-12-04 17:31:33
以编程方式删除
[NSArrayController removeObjectAtArrangedObjectIndex:NSInteger];或
[NSArrayController removeObjectAtArrangedObjectIndexes:NSIndexset];发布于 2017-09-10 14:52:46
@NewStack在Swift 3中的回答:
ArrayController.remove(atArrangedObjectIndex: Int)https://stackoverflow.com/questions/2069045
复制相似问题