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.
当 NSTreeController -(void)addChild:(id)sender被调用时,有没有办法获得NSManagedEntity创建的?
(void)addChild:(id)sender
NSManagedEntity
文档提到此方法的结果将推迟到下一次循环运行。
不,没有,因为在该方法返回之前不会创建对象。在内部,NSTreeController应该调用这个方法:
NSTreeController
- (void)insertObject:(id)object atArrangedObjectIndexPath:(NSIndexPath *)indexPath
你可以改写它对你有利吗?