Deep wrote: > Still working on the Pasteboard and have tried to make a function > where a > CoreGrpahics PDFContext is built and then the imagery is placed on the > pasteboard ready to move to another application. > > The conceptual part of the syntax has come from > QuickDrawToQuartz2D.pdf > taking advantage of not using the callback to make it easier as > callback is > not needed (see "promised data"). Unfortunately, it crashes where > marked. It > could be the "#define" stuff perhaps? It crashes in CGContextStrokePath(). To avoid the crash you need to bracket your CG drawing between CGContextBeginPage() and CGContextEndPage(). A minor point is that PasteboardItemID is not a CF type and would be better declared #define PasteboardItemID as ptr Robert P.