[英]Making an NSAlert be displayed when the User attempts to delete a row from an NSOutlineView when it has children
How would I do this? 我该怎么做? The Outline View is being used with Core Data. 大纲视图正与核心数据一起使用。
This hasn't really got anything to do with Core Data. 这实际上与Core Data没有任何关系。 Just check [object.children count] upon deletion. 只需在删除时检查[object.children count]。 When it is not 0, show a NSAlert. 如果不为0,则显示NSAlert。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.