Re: How to draw a NSView on top of a WebView and don't get overriden trying

2015-05-18 Thread Juanjo Conti
This worked just great! On Sat, May 16, 2015 at 12:59 PM, Uli Kusterer wrote: > Create a borderless window with your message in it, place it above your > web view. Since a screen saver doesn’t move, you could probably leave it at > that and not even use a child window? > > > On 16 May 2015, at 1

Re: How to draw a NSView on top of a WebView and don't get overriden trying

2015-05-16 Thread Uli Kusterer
Popovers are popovers. You can’t really configure their appearance enough (using public API) that they would be suitable for this use. However, popovers are separate windows, and likely implemented using child windows under the hood, so you could probably try adding your window as a child window

Re: How to draw a NSView on top of a WebView and don't get overriden trying

2015-05-16 Thread Uli Kusterer
Tick the checkmark next to your view in the Layers inspector in IB, or call setWantsLayer: YES. On 14 May 2015, at 14:30, Juanjo Conti wrote: > I've tried 2 and didn't work. How do I do 1? > > On Thu, May 14, 2015 at 7:46 AM, Uli Kusterer > wrote: > >> Two things I’d try: >> >> 1) Make your

Re: How to draw a NSView on top of a WebView and don't get overriden trying

2015-05-14 Thread David Durkee
This is an entirely different approach, and requires a different skill set, but could you use JavaScript to inject your content into the DOM of the web page being displayed as a floating element? Use stringByEvaluatingJavaScriptFromString: to execute your own JavaScript. David > On May 13, 201

Re: How to draw a NSView on top of a WebView and don't get overriden trying

2015-05-14 Thread Juanjo Conti
I've tried 2 and didn't work. How do I do 1? On Thu, May 14, 2015 at 7:46 AM, Uli Kusterer wrote: > Two things I’d try: > > 1) Make your view layer-backed > 2) Ensure that your view is a peer, not a subview of the web view. > > Any of that your issue? > > > On 14 May 2015, at 03:31, Juanjo Conti

Re: How to draw a NSView on top of a WebView and don't get overriden trying

2015-05-14 Thread Uli Kusterer
Two things I’d try: 1) Make your view layer-backed 2) Ensure that your view is a peer, not a subview of the web view. Any of that your issue? > On 14 May 2015, at 03:31, Juanjo Conti wrote: > > I'm writing a screen saver, so using another window is not possible :( > > On Tue, May 12, 2015 at

Re: How to draw a NSView on top of a WebView and don't get overriden trying

2015-05-14 Thread Mike Abdullah
> On 14 May 2015, at 03:43, Michael David Crawford wrote: > > would it work render the web view in an offscreen buffer, then copy > that onto an on-screen view of your own? > > At that point you could either have your child view, or simply draw > into one big view. That works for much web cont

Re: How to draw a NSView on top of a WebView and don't get overriden trying

2015-05-13 Thread Michael David Crawford
would it work render the web view in an offscreen buffer, then copy that onto an on-screen view of your own? At that point you could either have your child view, or simply draw into one big view. On 5/13/15, Juanjo Conti wrote: > I'm writing a screen saver, so using another window is not possibl

Re: How to draw a NSView on top of a WebView and don't get overriden trying

2015-05-13 Thread Juanjo Conti
I'm writing a screen saver, so using another window is not possible :( On Tue, May 12, 2015 at 6:00 PM, Mike Abdullah wrote: > The failsafe way is to place a child window over the WebView. I’m not 100% > sure but I think popovers work that way behind the scenes, so maybe one of > them would be u

Re: How to draw a NSView on top of a WebView and don't get overriden trying

2015-05-12 Thread Jens Alfke
> On May 12, 2015, at 1:44 PM, Juanjo Conti wrote: > > If I add it as a subView of WebView or if I add it as a subView of the > WebView's superView, it's shown for a while but if the WebView gets > scrolled or if I load sites gmail.com or twitter (without > logging in), the

Re: How to draw a NSView on top of a WebView and don't get overriden trying

2015-05-12 Thread Mike Abdullah
The failsafe way is to place a child window over the WebView. I’m not 100% sure but I think popovers work that way behind the scenes, so maybe one of them would be usable for this. > On 12 May 2015, at 22:44, Juanjo Conti wrote: > > I have a WebView and I want to show some messages over it. Fo

How to draw a NSView on top of a WebView and don't get overriden trying

2015-05-12 Thread Juanjo Conti
I have a WebView and I want to show some messages over it. For this I'm using a NSView. If I add it as a subView of WebView or if I add it as a subView of the WebView's superView, it's shown for a while but if the WebView gets scrolled or if I load sites gmail.com or twitter (without logging in),