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: Matt Rice
Subject: Re: NSView draw order messed up
Date: Wed, 2 Oct 2013 06:25:18 -0700

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

> 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.

last time something like this happened AFAIK was in the following thread
this particular email in the thread had a test application, which if
the cause is related may or may not help track it down.

http://lists.gnu.org/archive/html/gnustep-dev/2009-02/msg00101.html

to summarize it, floating point imprecision in NSRects was causing
needsDisplay flag to never be cleared when calling NSEqualRect
resulting in views drawn out of order, and events sent to the top-most
view in the event order, which was not the top-most view being
displayed.

does your view process events so you can check if the event and
display orders match?

It seems unlikely to be the exact cause because the fix for that
_appears_ to still be intact, though maybe the amount of imprecision
exceeds the test?

Its also worth knowing whether this is code which used to work/when it
worked last, or new code which fails to work, as very few things use
overlapping views



reply via email to

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