• 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: Multiple pasteboard items
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multiple pasteboard items


  • Subject: Re: Multiple pasteboard items
  • From: Bryan Prusha <email@hidden>
  • Date: Thu, 14 Jul 2005 10:26:06 -0700


On Jul 13, 2005, at 8:48 PM, David Catmull wrote:

According to the Carbon pasteboard documentation, the Carbon pasteboard API supports multiple items, while NSPasteboard does not. I find this surprising; is it still true?

I want to copy/paste/drag-and-drop multiple items in my app. Is there any normal or standard way to do this?

Is there a way to convert between Carbon PasteboardRefs and Cocoa NSPasteboards? The Carbon docs say "Pasteboard Manager pasteboards are fully-compatible with Cocoa NSPasteboard objects." Does this mean they're interchangeable, like NSStrings and CFStringRefs?

Let me try this again. That last e-mail got sent off a little too early.

The Carbon Pasteboard has built in support for multiple items. The NSPasteboard approximates this feature in some cases with special "multiple item" flavors like NSFilenamesPboardType and NSFilesPromisePboardType (note the plural usage). In these cases, NSPasteboard does some automatic translation between multiple Carbon 'hfs ' and 'phfs' flavors and the above Cocoa equivalents. For single item pasteboard usage all Cocoa data can be exchanged with Carbon by asking appropriate UTI. The reverse is only true for UTIs for which a NSPasteboardType is defined. NSStrings are CFStrings. As long as you can ask for the data you can use the data on either side.

_______________________________________________
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


References: 
 >Multiple pasteboard items (From: David Catmull <email@hidden>)

  • Prev by Date: Re: Multiple pasteboard items
  • Next by Date: Adding resources to the Application
  • Previous by thread: Re: Multiple pasteboard items
  • Next by thread: Target-Actions and Outlets
  • Index(es):
    • Date
    • Thread