名为CocoaDragAndDrop的示例应用程序使用名为enumerateDraggingItemsWithOptions的方法。这是在Obj-C中:[senderenumerateDraggingItemsWithOptions:NSDraggingItemEnumerationConcurrentforView:selfclasses:[NSArrayarrayWithObject:[NSPasteboardItemclass]]searchOptions:nilusingBlock:^(NSDraggingItem*draggingItem,NSIntegeridx,BOOL*