• 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: Cocoa-dev Digest, Vol 7, Issue 621
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa-dev Digest, Vol 7, Issue 621


  • Subject: Re: Cocoa-dev Digest, Vol 7, Issue 621
  • From: "ronald b. kopelman" <email@hidden>
  • Date: Sun, 06 Jun 2010 15:25:37 -0400

On Jun 5, 2010, at 10:17 PM, email@hidden wrote:

> I'm new to Cocoa programming. I would like to be able to drag filenames from Finder to a custom view in my application. Both previous mails and Mr. Google redirect to Drag and Drop Programming Topics for Cocoa (http://developer.apple.com/documentation/Cocoa/Conceptual/DragandDrop/) . I've read this, but something still doesn't work.

	I just went through this same exercise & some very nice folks on this list pointed me in the right direction. I will send you some working code off line. However,  changing the line:

> 	[self registerForDraggedTypes: [NSArray arrayWithObject: NSFilenamesPboardType]];

to

[self registerForDraggedTypes:[NSArray arrayWithObjects:NSFilenamesPboardType, nil]];

might help.

ronald b. kopelman_______________________________________________

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

  • Follow-Ups:
    • Re: registering dragged types
      • From: Jens Alfke <email@hidden>
  • Prev by Date: NSTextField sending action unbidden...
  • Next by Date: Ignore last problem...
  • Previous by thread: Re: NSTextField sending action unbidden...
  • Next by thread: Re: registering dragged types
  • Index(es):
    • Date
    • Thread