NSImage and PDF
One thing that seems to annoy people about NSImage is the fact that although you can get TIFF data by using the -TIFFRepresentation method, there is no obvious way to turn one directly into a PDF. This seems like an odd omission when you consider that Quartz directly supports PDF… anyway, I thought I'd rectify the situation by posting some code that implements a -PDFRepresentation method.
Anyway, here's the code, for those that want to have a look. By the way, I'd be interested to hear any comments anyone may have as to the approach I took to do this.
Update: I've just fixed the link to the code, which broke when I re-organised my site.
The link seems to be broken again. :-(