• 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: NSTextView.preferredPasteboardTypeFromArray
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextView.preferredPasteboardTypeFromArray


  • Subject: Re: NSTextView.preferredPasteboardTypeFromArray
  • From: Douglas Davidson <email@hidden>
  • Date: Wed, 28 Jan 2009 15:36:06 -0800


On Jan 26, 2009, at 8:36 PM, Chris Idou wrote:

This method's list of allowedTypes when I do the drag doesn't include my TokenPboardType. Now if I return TokenPboardType anyway, it seems to work. my readSelectionFromPasteboard gets called with TokenPboardType and it all seems to work. But it feels like I'm doing the wrong thing somehow, since from the doco it sounds like you shouldn't return a type that is not in the allowedTypes.

Try overriding -acceptableDragTypes as well as -readablePasteboardTypes.

Douglas Davidson

_______________________________________________

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: 
 >NSTextView.preferredPasteboardTypeFromArray (From: Chris Idou <email@hidden>)

  • Prev by Date: NObjective .NET <--> Objective-C bridge
  • Next by Date: Re: [Q] efficient or good model for send/receive with streams scheduled in runloop?
  • Previous by thread: NSTextView.preferredPasteboardTypeFromArray
  • Next by thread: Running CATransition in Different Thread ?
  • Index(es):
    • Date
    • Thread