Re: WebView in a layer view hierarchy - not working on Snow Leopard

2009-10-25 Thread Luke Evans
OK that's great Mike, thanks a lot for your help. As you say that's probably not something they will need to change over time so long as WebView remains in its current form. Anyway, hopefully you've given me my 'get out of jail card'. Cheers -- Luke On 2009-10-25, at 3:30 AM, Mike Abdullah

Re: WebView in a layer view hierarchy - not working on Snow Leopard

2009-10-25 Thread John Joyce
Pleases do not encourage use or attempted use of private functions and methods. This is bad practice. Encouraging others to do so is irresponsible and unethical. If you worked for me, you would stand a very large chance to lose your job. It is also not permitted to discuss private API o

Re: WebView in a layer view hierarchy - not working on Snow Leopard

2009-10-25 Thread Mike Abdullah
That's because it's a private method. Have a look at the WebKit source – WebUIDelegatePrivate.h It's been there since WebKit 3.0 so will probably be around for a while to come. And at worst, WebKit will just stop calling your method and you'll have to find something else (or include a custom

Re: WebView in a layer view hierarchy - not working on Snow Leopard

2009-10-24 Thread Luke Evans
Oh-oh. OK, 'tis as I feared then - I was living on a wing and a prayer with Leopard (which did work perfectly in this regard to my use of WebView in a layer-backed view hierarchy - i.e. at the bottom of the stack). I took a look at WebUIDelegate (as I think I had done a long while back,

Re: WebView in a layer view hierarchy - not working on Snow Leopard

2009-10-24 Thread Mike Abdullah
WebView's don't support being layer-backed. But there is a private WebUIDelegate method that will let you achieve what you want: - (void)webView:(WebView *)sender didDrawRect:(NSRect)rect; On 24 Oct 2009, at 00:53, Luke Evans wrote: I have an app that plain stopped working between Leopard and

WebView in a layer view hierarchy - not working on Snow Leopard

2009-10-23 Thread Luke Evans
I have an app that plain stopped working between Leopard and Snow Leopard. This app relies on placing a WebView component in a Core Animation layer view hierarchy (i.e. "Needs Core Animation Layer" flag is turned on for this view and its superviews), so that I can draw annotations over the