This is a sample app that uses SSYDragDestinationTextView to implement a text view that allows files to dragged onto it. Additionally it introduces the category NSTextView+EditWithUndo that allows for easy programmatic editing of an NSTextView’s text without forgoing undo support for the changes.
This code is released into the Public Domain. We all build upon those that have gone before us, the code certainly contains ideas and snippets from others. We retain no rights to it, although we’d appreciate it, if you don’t say anything bad about us.