• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Drag 'n Drop a filename in a table
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Drag 'n Drop a filename in a table (From: "Simone Tessaro" <email@hidden>)

  • Prev by Date: NSString componentsSeparatedByString returned memory
  • Next by Date: Re: KVC Compliance Document: What if ivar in an NSSet?
  • Previous by thread: Drag 'n Drop a filename in a table
  • Next by thread: NSString componentsSeparatedByString returned memory
  • Index(es):
    • Date
    • Thread