discuss-gnustep
[Top][All Lists]
Advanced

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

NSView draw order messed up


From: Lundberg, Johannes
Subject: NSView draw order messed up
Date: Wed, 2 Oct 2013 19:41:01 +0900

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]