• 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
Custom pasteboard types?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Custom pasteboard types?


  • Subject: Custom pasteboard types?
  • From: Jeff LaMarche <email@hidden>
  • Date: Wed, 31 Aug 2005 15:44:04 -0400

I've got a view that's both a drag source and drag destination. Dragging to and from other objects (where I've used delivered pasteboard types like PBTIFFPboardType) works fine, dragging from one of these views to another one of them, however, doesn't work.

What I've tried to do is to declare a custom Pasteboard type, which I can use to copy all attributes between two views of the same kind. Using the type seems to work - I'm able to put objects on the pasteboard using it, and when I retrieve the list of types from the pasteboard, the type shows up as available.

But no matter what I do, the object I put on the pasteboard doesn't come through. It's an NSDictionary, and it's not nil, but I get a nil object on the other end of the drag. This happens if I use setPropertyList:forType: setData:forType: (archiving the data with an NSKeyedArchiver) or setString:forType.

Can anyone think of what I might be doing wrong? Is it acceptable to declare custom pasteboard types like this?

Thanks,
Jeff
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Custom pasteboard types?
      • From: Bryan Prusha <email@hidden>
  • Prev by Date: Re: NSTimer
  • Next by Date: Re: Custom pasteboard types?
  • Previous by thread: Re: NSTimer
  • Next by thread: Re: Custom pasteboard types?
  • Index(es):
    • Date
    • Thread