I am trying to put a flavor onto the pasteboard. Everything works
fine if one of the flavors includes a known public type, but
otherwise, my private and dynamically generated pasteboard flavors
alone are not enough to actually change the pasteboard.
The sample code below fails to change the pasteboard unless I include
the second PasteboardPutItemFlavor(... thePublicFlavorName,...). I
have removed the error checking, but no errors were returned.
In my app I am trying to create a WebURLsWithTitlesPboardType flavor
on the pasteboard. I use UTTypeCreatePreferredIdentifierForTag() to
get a dynamic identifier that does match the one I get from other
apps. However, the pasteboard does not change with only the single
flavor. What flavor should my Carbon app be using to provide a list
of URLs with titles?
result = PasteboardCreate( kPasteboardClipboard, &thePBoard );
result = PasteboardClear( thePBoard );
result = PasteboardSynchronize( thePBoard );
result = PasteboardPutItemFlavor( thePBoard, theItemID,
thePrivateFlavorName, thePData, 0 );
// result = PasteboardPutItemFlavor( thePBoard, theItemID,
thePublicFlavorName, thePData, 0 );
CFRelease( thePData );
}
_______________________________________________
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