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.
Have you tried calling [pdfView setDocument:document] before
setAutoScales:? ISTR having a similar problem long ago, and that code
is working fine now with just setDocument:. You shouldn't need to
send layoutDocumentView or setNeedsDisplay:YES.
-- Adam
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com