• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Automator and Webkit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Automator and Webkit (From: Scott Garner <email@hidden>)
 >Re: Automator and Webkit (From: Daniel Jalkut <email@hidden>)

  • Prev by Date: Re: Is Cocoa incompatible with 64-bit?
  • Next by Date: Re: Is Cocoa incompatible with 64-bit?
  • Previous by thread: Re: Automator and Webkit
  • Next by thread: Re: Automator and Webkit
  • Index(es):
    • Date
    • Thread