src/macosx/native/sun/awt/CDropTarget.m
Print this page
@@ -104,10 +104,11 @@
NSArray* dataTypes = [[NSArray alloc] initWithObjects:
NSStringPboardType,
NSFilenamesPboardType,
NSPostScriptPboardType,
NSTIFFPboardType,
+ NSPasteboardTypePNG,
NSRTFPboardType,
NSTabularTextPboardType,
NSFontPboardType,
NSRulerPboardType,
NSFileContentsPboardType,
@@ -117,10 +118,11 @@
NSURLPboardType,
NSPDFPboardType,
NSVCardPboardType,
NSFilesPromisePboardType,
[DnDUtilities javaPboardType],
+ (NSString*)kUTTypeJPEG,
nil];
// Enable dragging events over this object:
[fView registerForDraggedTypes:dataTypes];