Re: PDFDocument and CGPDFDocument
Re: PDFDocument and CGPDFDocument
- Subject: Re: PDFDocument and CGPDFDocument
- From: Graham Cox <email@hidden>
- Date: Wed, 11 May 2011 22:34:23 +1000
On 11/05/2011, at 6:33 PM, Antonio Nunes wrote:
> How about opening the document with PDFKit to start with, and then ask the obtained PDFDocument for its documentRef when you need to get submerged. I don't think you can go the other way.
>
> The 'documentRef' is in the PDFDocument header file.
> - (CGPDFDocumentRef) documentRef;
Ah, good to know - I hadn't checked out the headers, just the class reference. I assumed that PDFDocument was a wrapper on CGPDFDocument, but didn't see anything that exposed that. Thanks!
I already changed the code to work this way round actually, since it was obviously easier.
On a follow-up note, I'm using PDFView and PDFThumbView in a modal dialog to pick the page to open (since it's part of opening a file I don't yet have a document to hang a sheet from). The main page view works fine but I notice that the thumbnail images apart from the first don't get updated during the modal dialog, only when the modal session ends. If I run the window modelessly it works normally. Anyone know anything about this, and how to fix it? I'd guess that some timer is used to update the thumbs and it's not being run in the modal loop mode.
--Graham
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden