On Mon, 26 Mar 2007 16:27:28, "Steve Mills" <email@hidden> wrote:
> When adding data to a clipboard, will the Pasteboard manager (or the
> CFDataRef object) work correctly if I create the CFDataRef with
> CFDataCreateWithBytesNoCopy, and my data source goes away after
> calling PasteboardPutItemFlavorData? Or do I need to use
> CFDataCreate? I'm guessing CFDataRef can't know when it needs to copy
> the bytes into its own internal buffer when my local copy has been
> destructed, correct?
You may still keep going without making an extra copy if you wish:
do the actual destruction of the underlying data bits from inside
the bytesDeallocator of CFDataCreateWithBytesNoCopy.
Mike
[Available for hire. Resume on request.]
_______________________________________________
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