how to move subviews inside a super view
问题 how to move subviews inside a super view (using osx 10.6) using mouse? i have programmatically created five NSimageView's as subviews using for loop.. how to select and drag each imageview 回答1: In a nutshell, you'd want to make your subviews drag sources, and make your target view a destination. This means implementing something like the NSDraggingSource and NSDraggingDestination protocols. Take a look at Apple's Drag & Drop documentation: https://developer.apple.com/library/mac/