Re: performDragOperation for many types
Re: performDragOperation for many types
- Subject: Re: performDragOperation for many types
- From: Jerry Krinock <email@hidden>
- Date: Sat, 4 Aug 2007 18:23:20 -0700
On 2007 Aug, 04, at 3:21, Aaron Wallis wrote:
Just wondering what would be the best way to allow dropping on an
NSWindow of many, many types?
I've seen it done by sending -registerForDraggedTypes: to the
window's contentView, but I just noticed that NSWindow supports a -
registerForDraggedTypes: method too. I would try that.
I've been having trouble writing some codes that handles URL drops,
strings from documents, files etc.
Try some of these:
NSArray* acceptableDragTypes = [NSArray arrayWithObjects:
@"NeXT plain ascii pasteboard type",
NSFilenamesPboardType,
NSURLPboardType,
NSStringPboardType, nil] ;
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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