Re: drag and drop problem.
Re: drag and drop problem.
- Subject: Re: drag and drop problem.
- From: George Orthwein <email@hidden>
- Date: Thu, 17 May 2007 14:42:02 -0400
Your code works with an image selection dragged from Photoshop. If
you want to drag image files from the desktop, I believe you have to
use NSFilenamesPboardType:
NSMutableArray *dragTypes = [NSMutableArray
arrayWithObjects:NSFilenamesPboardType, nil];
[dragTypes addObjectsFromArray:[NSImage imagePasteboardTypes]];
[self registerForDraggedTypes:dragTypes];
You may also find this helpful to view what's on the clipboard:
/Developer/Applications/Utilities/Built Examples/Clipboard Viewer.app
Though I haven't figured out how to use it to view the Drag Clipboard
effectively....
George
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden