Re: setAllowedFileTypes: (or similar) for NSPasteboard
Re: setAllowedFileTypes: (or similar) for NSPasteboard
- Subject: Re: setAllowedFileTypes: (or similar) for NSPasteboard
- From: Jerry Krinock <email@hidden>
- Date: Sun, 04 Mar 2012 07:01:30 -0800
On 2012 Mar 04, at 01:28, Rick C. wrote:
> I want to make a UTI array to limit what can be dragged onto my TableView.
Implement -tableView:validateDrop:proposedRow:proposedDropOperation: and return NSDragOperationNone if the [info draggingPasteboard] contains stuff you don't want.
> Sorry if I'm missing the obvious here
Drag and drop is not obvious. See: Table View Programming Guide ▸ Using Drag and Drop in Tables.
_______________________________________________
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