Re: Automator and Webkit
Re: Automator and Webkit
- Subject: Re: Automator and Webkit
- From: Scott Garner <email@hidden>
- Date: Mon, 27 Jun 2005 18:50:55 -0500
On Jun 27, 2005, at 13:37, Daniel Jalkut wrote:
It seems possible to me that you might be able to create a web view
with no superview, and ask it to load something. Have you tried
printing the web view without bothering with a window, hidden or
otherwise?
Ah, you set me on the right track! For some reason I had decided
that I couldn't access the webview properly without it living in a
window, but after your suggestion I tried again and came up with this:
fakeWebView = [[WebView alloc] initWithFrame: NSMakeRect (0,0,0,0)];
...
[[fakeWebView mainFrame] loadRequest:[NSURLRequest requestWithURL:
[NSURL URLWithString:URLString]]];
...
documentView = [[[fakeWebView mainFrame] frameView] documentView];
Once I get that documentView I'm able to do my printing without any
problems.
Thanks for your help!
Scott
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden