Re: Cocoa-dev Digest, Vol 7, Issue 621
Re: Cocoa-dev Digest, Vol 7, Issue 621
- Subject: Re: Cocoa-dev Digest, Vol 7, Issue 621
- From: "ronald b. kopelman" <email@hidden>
- Date: Sun, 06 Jun 2010 15:25:37 -0400
On Jun 5, 2010, at 10:17 PM, email@hidden 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@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