Re: Proper UTI for accepting files dropped on my table view?
Re: Proper UTI for accepting files dropped on my table view?
- Subject: Re: Proper UTI for accepting files dropped on my table view?
- From: Rick Mann <email@hidden>
- Date: Mon, 9 Aug 2010 23:53:50 -0700
On Aug 9, 2010, at 23:48:34, Kyle Sluder wrote:
> On Mon, Aug 9, 2010 at 11:42 PM, Rick Mann <email@hidden> wrote:
>> Well, that seemed to do the trick. In the validate drop method, the pasteboard claims to have that type. But when I call propertyListForType: with that type, I get back null.
>
> You might want to consider using the modern pasteboard API.
Could you elaborate? I'm trying to handle drops in an outline view. It calls delegate methods like:
- (NSDragOperation)
outlineView: (NSOutlineView*) inView
validateDrop: (id<NSDraggingInfo>) inSender
proposedItem: (id) inItem
proposedChildIndex: (NSInteger) inIndex
From that I can only get an NSPasteboard, as far as I can tell.
I pretty much followed Apple direction to get to this point. If there's a more modern pasteboard, they should mention it in the old pasteboard docs.
--
Rick
_______________________________________________
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