Re: Drag 'n Drop a filename in a table
Re: Drag 'n Drop a filename in a table
- Subject: Re: Drag 'n Drop a filename in a table
- From: Nick Zitzmann <email@hidden>
- Date: Fri, 14 Dec 2007 14:38:28 -0700
On Dec 14, 2007, at 2:09 PM, Simone Tessaro wrote:
Hi. i'm trying to understand the drag and drop method and Cocoa. I'm
reading many code but i need an help. I want to drop some filename in
a table (and for now it works) but i don't want to drop the directory.
Have you any tips or suggest to do this task? Must i use the
"misterious" - validateDrop method? but how?
Yes. In that method, get the file path, then use -[NSFileManager
fileExistsAtPath:isDirectory:] to figure out if it's a file or folder.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
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