Monday, Oct 22, 2007 Drag and drop programming
You can find the following information to enable drag and drop in your application:
- Drag and Drop Programming Topics for Cocoa
- Sample code – CocoaDragAndDrop
- API reference for those involved classes and protocols.
Hm… but there’s one thing missing. The application needs to determine the file type to see if it is supported file if you allow files to be dropped into your application. You can find ways to identify file type here – Uniform Type Identifiers Overview
If you wanna check how to identify image type, please check the article in Theocacao
You can simply get the file extension to check the file type. All files in Finder should have file extension (be it shown or hidden).