On Jun 5, 2010, at 10:17 PM, [email protected] wrote:
> I'm new to Cocoa programming. I would like to be able to drag filenames from
> Finder to a custom view in my application. Both previous mails and Mr. Google
> redirect to Drag and Drop Programming Topics for Cocoa
> (http://developer.apple.com/documentation/Cocoa/Conceptual/DragandDrop/) .
> I've read this, but something still doesn't work.
I just went through this same exercise & some very nice folks on this
list pointed me in the right direction. I will send you some working code off
line. However, changing the line:
> [self registerForDraggedTypes: [NSArray arrayWithObject:
> NSFilenamesPboardType]];
to
[self registerForDraggedTypes:[NSArray arrayWithObjects:NSFilenamesPboardType,
nil]];
might help.
ronald b. kopelman_______________________________________________
Cocoa-dev mailing list ([email protected])
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]