Navigation Menu

Skip to content

phaibin/DragDropDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

DragDropImageView


This is a demo for adding dragging and droppings support to NSImageView, based on Apple's sample code "CocoaDragAndDrop".

Apple's "CocoaDragAndDrop" sample shows you how to drag image from Finder to an NSImageView and how to drag an image between NSImageViews, but it doesn't show you how to drag from NSImageView to Finder and save the image.

I added some code to "DragDropImageView" to show you how to do this. Also, the two properties: allowDrag and allowDrop are available which control if the NSImageView can drag or drop the image.

About

drag and drop demo for NSImageView

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published