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?
Well, now I know what's going on: The PDFView was inside a modal
window. When the window was being displayed normally, the PDFView
worked as expected. Once I made the window run as modal, then the
above behavior appeared.
I'm going to get a sample app together and file a bug on this as soon
as I've finished this message, but in the meantime, I need an
alternate PDFView class, something like what iCal uses to do its
print preview in its page setup window. Does anyone have suggestions?
I'd like something that users can move around by dragging the mouse
(e.g. "drag mode" in Preview) as well as being able to zoom in and
out, and it needs to be able to work in a modal window...