discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSView draw order messed up


From: Lundberg, Johannes
Subject: Re: NSView draw order messed up
Date: Wed, 2 Oct 2013 19:42:08 +0900

Addition:

Exactly the same code works as expected on OS X.

--
Johannes Lundberg
Project leader and lead developer of Mirama OS (previously Viking OS)
BRILLIANTSERVICE CO., LTD.

My blog
Mirama homepage blog
Company homepage


On Wed, Oct 2, 2013 at 7:41 PM, Lundberg, Johannes <johannes@brilliantservice.co.jp> wrote:
Hi

I'm getting some inconsistent behavior when drawing NSView and NSImageView.
Source is all from svn recently downloaded.

The order in which the subviews are drawn seems random. Sometimes expected behavior, sometimes (actually most of the time) last added view gets drawn behind a previously added view.

Using - (void)addSubview:(NSView *)aView positioned:(NSWindowOrderingMode)place relativeTo:(NSView *)otherView doesn't seems to do any difference...

Backend is cairo.

View hierarchy is

NSWindow
 |
NSScrollView
 |
NSView (scrollview's documentView)
 |
[ a bunch of views which are drawn in wrong order (not the order they are added).. ]

Don't know if this is a bug or if it some weird effect of having view overlapping each other inside a scrollview.. Anyone with insight?

--
Johannes Lundberg
Project leader and lead developer of Mirama OS (previously Viking OS)
BRILLIANTSERVICE CO., LTD.

My blog
Mirama homepage blog
Company homepage


reply via email to

[Prev in Thread] Current Thread [Next in Thread]