I've done some searching on this subject but haven't found anything
that has worked.
I have a view which is used for printing things. I'm taking the PDF
data for the view and trying to display it in a PDFView that is
instantiated in the nib. Here is what I'm doing:
However, on the very first time -setDocument: is called, the view
appears completely grey on the screen, meaning it's not displaying
anything. If I use the zoom controls once, then the "document"
appears but is completely blank. If I use them again, then and only
then does the document display correctly. Also, the -setAutoScales:
option is ignored the first time, although if I call this again with
different PDF data, then it works.
What's going on here? Is there anything I can do to get the PDF to
display correctly the first time?