web browsing in the main animation layer
The only other thread I can find is above, which does not necessarily match my needs. Is there a reliable way to simply draw a view on top of a web view? I tried to stack a regular NSView on top of the WebView, and it draws first, but any movement in the webview (page scrolling, etc.) seems to invalidate the view and create visual artifacts.
I tried:
[[[NSApp mainWindow] contentView] addSubview:view positioned:NSWindowAbove relativeTo:webView];
No luck, the same problems - the z-order does not work if I am missing something.
Is this just a limitation of web views?
I also tried to implement the view above as a window that worked much better (just controlled the window layout programmatically). However, the desired behavior is that the user can enter some text in this window, but not in order to steal the "focus" - that is, the main window becomes inactive (x - + go gray) when the user clicks on the text field in a new window. Any way to avoid this?
I tried to subclass NSWindow and override canBecomeKey (return YES) and canBecomeMain (return NO), but the window still steals focus.
EDIT: :-( webkit. , , ( ). Backspace :: shakes head::, webkit ( , html). Craptacular.