| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
|
I’m attempting to convert a web page to PDF (among
other things) after it has been loaded in a webview. To do this, I register my
controller class for the WebViewProgressFinishedNotification and initiate the
PDF generation when this notification is received. Unfortunately, it appears
this gets called BEFORE the frame is finished loading PDF data (and gets called
multiple times). This means that the frame has no documentView yet, so I
can’t create a PDF from the documentView. In order to work around this, I
set up my controller as a delegate for the -webView:didFinishLoadForFrame:
delegate method. I set a Boolean in this method when the mainframe has been
loaded (the only one I’m concerned about) and check for it when I receive
the WebViewProgressFinishedNotification. The reason I’m still using the
notification at all is because it appears that –webView:didReceiveTitle:forFrame
and –webView:didReceiveIcon:forFrame: can be called after the -webView:didFinishLoadForFrame:,
and I want to make sure that I get the title and icon as well as the content in
the main frame. My question is this: Can I rest assured that the notification
will ALWAYS be sent after the delegate methods are called? If not, what method
should I use to guarantee that a WebView has been completely loaded before I
try and grab the data out of it? Thanks! Josh Ferguson |
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webkitsdk-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webkitsdk-dev/email@hidden This email sent to email@hidden
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.