Re: Drag and Drop from Finder to Source List
Re: Drag and Drop from Finder to Source List
- Subject: Re: Drag and Drop from Finder to Source List
- From: "I. Savant" <email@hidden>
- Date: Thu, 10 Jan 2008 12:50:17 -0500
> I've already got NSTreeController working with NSOutlibeView and
> binding in a non-Core Data app but now I need some advice on how to
> one allow certain file type drops.
NSWorkspace has a method called -typeOfFile:error: ... this will
attempt to give you the Uniform Type Identifier of a given file or an
error explaining why it couldn't. That's better than going by
extension, I'd imagine, though it doesn't seem perfectly robust
itself.
--
I.S.
_______________________________________________
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