Re: - [NSBitmapImageRep cacheDisplayInRect:toBitmapImageRep:] produces empty image

2009-08-20 Thread Adam R. Maxwell
On Aug 20, 2009, at 2:31 PM, Ben Lachman wrote: This works pretty well, although I do seem to get a white area where there would have been a scroller on the right hand side. Interesting; I hadn't noticed that because of the white border I use. Drawing the WebView itself seems to fix that

- [NSBitmapImageRep cacheDisplayInRect:toBitmapImageRep:] produces empty image

2009-08-19 Thread Ben Lachman
I have an offscreen window containing a WebView that I'm using to generate web previews. My current code works beautifully and looks like this: NSView *view = previewWebView.mainFrame.frameView.documentView; NSRect targetRect = view.bounds;

Re: - [NSBitmapImageRep cacheDisplayInRect:toBitmapImageRep:] produces empty image

2009-08-19 Thread Adam R. Maxwell
On Aug 19, 2009, at 2:50 PM, Ben Lachman wrote: I have an offscreen window containing a WebView that I'm using to generate web previews. My current code works beautifully and looks like this: NSView *view = previewWebView.mainFrame.frameView.documentView; I do something

Re: - [NSBitmapImageRep cacheDisplayInRect:toBitmapImageRep:] produces empty image

2009-08-19 Thread Ben Lachman
On Aug 19, 2009, at 8:45 PM, Adam R. Maxwell wrote: On Aug 19, 2009, at 2:50 PM, Ben Lachman wrote: I have an offscreen window containing a WebView that I'm using to generate web previews. My current code works beautifully and looks like this: NSView *view =

Re: - [NSBitmapImageRep cacheDisplayInRect:toBitmapImageRep:] produces empty image

2009-08-19 Thread Adam R. Maxwell
On Aug 19, 2009, at 8:39 PM, Ben Lachman wrote: On Aug 19, 2009, at 8:45 PM, Adam R. Maxwell wrote: On Aug 19, 2009, at 2:50 PM, Ben Lachman wrote: I have an offscreen window containing a WebView that I'm using to generate web previews. My current code works beautifully and looks like