Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ScrapMgr/Pasteboard data interoperability questions



Hi,

I have a data type that I'd like to put on the clipboard in both proprietary and PDF representations. The PDF representation suggests I should be using modern Pasteboard architecture and exporting a kUTTypePDF pasteboard flavor to describe it. Unfortunately, an application requirement is that my clipboard interoperate with earlier versions of my application, which use ScrapManager API. If I use a private UTI to describe my proprietary representation, it doesn't appear on the pasteboard. So my question:

- Is there any way I can tag an exported pasteboard flavor with an OSType that will become visible to earlier versions of my application? If I publically declare and export a full UTI description of my proprietary Pasteboard UTI, and give it a UTTypeTagSpecification with a <key>com.apple.ostype</key>, will this cause the Scrap Manager to make it visible under ostype to older ScrapMgr-based clients of the clipboard?

In a similar vein, I discover that if I export (using Pasteboard API) plain 8-bit text as kUTTypePlainText, it is not visible to older ScrapManager-based 'TEXT'-consuming applications, like Word 2004. Using Pasteboard Peeker sample code, it appears that these application's 'TEXT' export is given a UTI of com.apple.traditional- mac-plain-text, which I can't find in header documentation. I already also export a Unicode format, but (second question)

- If I want to export an 8-bit format for interoperability with older applications, am I advised to just publish this as "com.apple.traditional-mac-plain-text" and assume the OS has exported this UTI declaration?

If neither of these are the directions I should be pursuing, any advice on how to simultaneously publish via modern API (pasteboard, for PDF) and deprecated API (ScrapMgr, for 'TEXT' and my proprietary format's interoperability with older apps) is much appreciated!

Thanks,
Nick

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.