gnustep-dev
[Top][All Lists]
Advanced

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

Re: Fwd: NSView patch


From: Fred Kiefer
Subject: Re: Fwd: NSView patch
Date: Thu, 26 Feb 2009 09:36:11 +0100
User-agent: Thunderbird 2.0.0.19 (X11/20081227)

Matt Rice wrote:
> I don't think that will work because I'm also seeing rounding errors on
> the isect = NSIntersectionRect(...) calls... though not in the stuff i
> sent earlier for some reason... not sure why...
> but that would also only work when displaying whole views,
> and i take it you don't like the idea of just using
> GSAlmostEqualRects() in NSView?
> 
> here's 2 test cases, bar.app is the minimal one and another one that
> allows you to drag the purple view around by clicking on it, and
> resize it by clicking the black square, rotate and scale and all that
> other stuff... (note that scaling doesn't seem to work until its been
> rotated)
> the one thing it doesn't do is allow you to set the origin at
> non-integer increments unless whatever input device your using gives
> non-integer coordinates (i don't appear to have one)
> if its not reproducable I could add something like a NSStepper to
> increment the deal by the value of the value of the top slider or
> something...
> 
> after adding some NSLog's to NSView....
> 
> 2009-02-24 21:34:36.263 bar[10292] subviewFrame
> displayRectIgnoringOpacity:inContext: <BarView: 0x24cbd70>
> 
> 146.749039 205.641785 118.000000 54.000000
> 
> 2009-02-24 21:34:36.263 bar[10292] aRect
> displayRectIgnoringOpacity:inContext: <BarView: 0x24cbd70>
> 
> 0.000000 0.000000 700.000000 500.000000
> 
> 2009-02-24 21:34:36.271 bar[10292] isect before conversion
> displayRectIgnoringOpacity:inContext: <BarView: 0x24cbd70>
> 
> 146.749039 205.641785 117.999985 54.000000
> 
> 
> 2009-02-24 21:34:36.271 bar[10292] isect after conversion
> displayRectIgnoringOpacity:inContext: <BarView: 0x24cbd70>
> 
> 0.000000 0.000000 117.999985 54.000000
> 
> now i could probably work around this by just flooring the points, but
> i am hesitant to work around things in gui for fear they will be
> forgotten,
> and go unnoticed give someone else the joy of rediscovering this..

Thank you for that great test application. It is already my favourite. I
will port it over to my Apple and use it there to fix more display bugs
in GNUstep. And then use it with all our backends.




reply via email to

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