• 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
Drag pasteboard owner asked for data upon quitting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Drag pasteboard owner asked for data upon quitting


  • Subject: Drag pasteboard owner asked for data upon quitting
  • From: Philip White <email@hidden>
  • Date: Tue, 13 Jul 2010 16:35:49 -0500

Hello,

In my app, in which I've implement various drag and drop mechanisms, I'm getting calls to -pasteboard:provideDataForType: upon quitting if I've performed dragging in my app. Of course, at such time, the drag being long over, my app doesn't have the data to supply. I've verified that the pasteboard passed to that method is the same one returned by [NSPasteboard pasteboardWithName:NSDragPboard].

If I setup that method to essentially ignore the request at such times as it doesn't have the data to provide, it doesn't seem to causing any problems, but it makes me wonder if I'm doing something wrong, like I haven't 'reset' the pasteboard or something once the drag was done. I'm using the 10.5 and earlier NSPasteboard API.

I can understand why other pasteboards would ask for data upon quitting, but why would the drag pasteboard?

Thanks,
  Philip

P.S. The dragged types I'm providing aren't promised files or anything, just immediate data: NSRTFDPboardType, NSRTFPboardType, and NSStringPboardType.
_______________________________________________

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: Drag pasteboard owner asked for data upon quitting
      • From: Wim Lewis <email@hidden>
  • Prev by Date: Re: Compiler bug?
  • Next by Date: Re: coredata to-many relationships
  • Previous by thread: Self sign certificate creation
  • Next by thread: Re: Drag pasteboard owner asked for data upon quitting
  • Index(es):
    • Date
    • Thread