• 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: performDragOperation for many types
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: performDragOperation for many types


  • Subject: Re: performDragOperation for many types
  • From: Jerry Krinock <email@hidden>
  • Date: Sat, 4 Aug 2007 18:23:20 -0700


On 2007 Aug, 04, at 3:21, Aaron Wallis wrote:

Just wondering what would be the best way to allow dropping on an NSWindow of many, many types?

I've seen it done by sending -registerForDraggedTypes: to the window's contentView, but I just noticed that NSWindow supports a - registerForDraggedTypes: method too. I would try that.


I've been having trouble writing some codes that handles URL drops, strings from documents, files etc.

Try some of these:

NSArray* acceptableDragTypes = [NSArray arrayWithObjects:
     @"NeXT plain ascii pasteboard type",
     NSFilenamesPboardType,
     NSURLPboardType,
     NSStringPboardType, nil] ;

_______________________________________________

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: 
 >performDragOperation for many types (From: Aaron Wallis <email@hidden>)

  • Prev by Date: Re: NSTableView searching and predicates
  • Next by Date: Secure-Text-Field-Like Field Editor Initialization
  • Previous by thread: performDragOperation for many types
  • Next by thread: webloc files
  • Index(es):
    • Date
    • Thread