Re: NSScrollView drawing errors (Cocoa Bug?)
Re: NSScrollView drawing errors (Cocoa Bug?)
- Subject: Re: NSScrollView drawing errors (Cocoa Bug?)
- From: Michael Becker <email@hidden>
- Date: Thu, 13 Oct 2005 15:02:31 +0200
On 13.10.2005, at 13:56, Michael Becker wrote:
strange things happen with an NSScrollView of mine. Here's the
setup: I have a custom view that will programmatically add another
subview to itself. This subview contains an NSTabView. One tab of
the tabview contains an NSScrollView which again contains another
custom view. I hope so far things are clear :) ... But I am
experiencing weird things with that NSScrollView. Basically, when I
scroll down, things seem to be alright, but when I scroll up again
(no matter if I use the scroller or my mouse's scroll wheel), the
drawing gets messed up.
The custom view inside of the NSScrollView doesn't do more than
this (for debugging reasons):
I think I have found the reason for the messed up drawing and I am
pretty sure it's a Cocoa bug. When setting an NSScrollView's frame to
values that contain decimal amounts, like so:
[scrollView setFrame:NSMakeRect(10.5f, 10.6f, 100.2f, 100.8f)];
the scrolling and drawing are completely messed up. If you change
this to the following:
[scrollView setFrame:NSMakeRect(10.0f, 10.0f, 100.0f, 100.0f)];
drawing and scrolling work nicely and without any errors. That is the
scenario at least on my machine. If somebody can confirm this I will
file a bug.
Regards,
Michael
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden